Skip to content
Snippets Groups Projects
Commit 9a699145 authored by akiraohgaki's avatar akiraohgaki
Browse files

Add XdgUrl class

parent 5bfb7130
Branches
Tags
No related merge requests found
#include <QDebug>
#include "../core/config.h"
#include "../core/network.h"
#include "../utility/file.h"
#include "../utility/json.h"
#include "xdgurl.h"
namespace Handlers {
XdgUrl::XdgUrl(const QString &xdgurl, Core::Config *appConfig, Core::Config *userConfig, Core::Network *asyncNetwork, QObject *parent) :
QObject(parent), _xdgurl(xdgurl), _appConfig(appConfig), _userConfig(userConfig), _asyncNetwork(asyncNetwork)
{
}
} // namespace Handlers
#ifndef HANDLERS_XDGURL_H
#define HANDLERS_XDGURL_H
#include <QObject>
//#include <QJsonObject>
//class QNetworkReply;
namespace Core {
class Config;
class Network;
}
namespace Handlers {
class XdgUrl : public QObject
{
Q_OBJECT
private:
QString _xdgurl;
Core::Config *_appConfig;
Core::Config *_userConfig;
Core::Network *_asyncNetwork;
public:
explicit XdgUrl(const QString &xdgurl, Core::Config *appConfig, Core::Config *userConfig, Core::Network *asyncNetwork, QObject *parent = 0);
private:
private slots:
public slots:
signals:
};
} // namespace Handlers
#endif // HANDLERS_XDGURL_H
......@@ -18,14 +18,14 @@ SOURCES += \
src/main.cpp \
src/core/config.cpp \
src/core/network.cpp \
src/handlers/item.cpp \
src/handlers/xdgurl.cpp \
src/utility/file.cpp \
src/utility/json.cpp
HEADERS += \
src/core/config.h \
src/core/network.h \
src/handlers/item.h \
src/handlers/xdgurl.h \
src/utility/file.h \
src/utility/json.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment