MauiKit File Browsing

syncinglist.h
1#ifndef SYNCINGLIST_H
2#define SYNCINGLIST_H
3
4#include "fmh.h"
5#include <QObject>
6
7class FM;
8class SyncingList : public QObject
9{
11 Q_DISABLE_COPY(SyncingList)
12
13public:
14 explicit SyncingList(QObject *parent = nullptr);
15 FMH::MODEL_LIST items() const;
16
17private:
18 FMH::MODEL_LIST list;
19 void setList();
20 FM *fm;
21
23 void preItemAppended();
24 void postItemAppended();
25 void preItemRemoved(int index);
26 void postItemRemoved();
27 void updateModel(int index, QVector<int> roles);
28 void preListChanged();
29 void postListChanged();
30
31public Q_SLOTS:
32 QVariantMap get(const int &index) const;
33 void insert(const QVariantMap &data);
34 void removeAccount(const QString &server, const QString &user);
35 void removeAccountAndFiles(const QString &server, const QString &user);
36 void refresh();
37};
38
39#endif // SYNCINGLIST_H
The FM class stands for File Management, and exposes methods for file listing, browsing and handling,...
Definition fm.h:102
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:51:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.