forked from lubuwest/Friendiqa
Version 0.002 with working FriendsTabView
This commit is contained in:
parent
bc4adba50c
commit
42de63fe63
77 changed files with 6830 additions and 387 deletions
49
v0.002/Develop/source-linux/common/filesystem.h
Normal file
49
v0.002/Develop/source-linux/common/filesystem.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
#ifndef FILESYSTEM_H
|
||||
#define FILESYSTEM_H
|
||||
|
||||
#include <QDir>
|
||||
#include <QObject>
|
||||
|
||||
class FILESYSTEM : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString Directory READ Directory WRITE setDirectory NOTIFY directoryChanged)
|
||||
|
||||
public:
|
||||
static FILESYSTEM *instance();
|
||||
explicit FILESYSTEM(QObject *parent = 0);
|
||||
void setDirectory(QString Directory);
|
||||
QString Directory() const;
|
||||
|
||||
signals:
|
||||
void directoryChanged();
|
||||
void success(QString data);
|
||||
void error(QString data, int code);
|
||||
|
||||
public slots:
|
||||
//void setDirectory(QString Directory);
|
||||
void makeDir(QString name);
|
||||
void rmDir(QString name);
|
||||
void rmFile(QString name);
|
||||
|
||||
private slots:
|
||||
//void onReplyError(QNetworkReply::NetworkError code);
|
||||
// void onReplySuccess();
|
||||
//void onReadyRead();
|
||||
// void onSSLError(const QList<QSslError> &errors);
|
||||
|
||||
private:
|
||||
//QByteArray buffer;
|
||||
QString m_Directory;
|
||||
//QString m_login;
|
||||
//QHash<QString, QString> params;
|
||||
//QHash<QString, QString> files;
|
||||
|
||||
//QNetworkAccessManager manager;
|
||||
//QNetworkRequest request;
|
||||
//QNetworkReply *reply;
|
||||
|
||||
//QString bufferToString();
|
||||
};
|
||||
|
||||
#endif // FILSYSTEM_H
|
Loading…
Add table
Add a link
Reference in a new issue