blob: 046bc863668634c54b8d263dbcc3bf55d2069934 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef SIMPLENETWORKPROTOCOL_H
#define SIMPLENETWORKPROTOCOL_H
#include "protocol.h"
namespace CodePaster {
class UrlOpenProtocol : public NetworkProtocol
{
Q_OBJECT
public:
UrlOpenProtocol(const NetworkAccessManagerProxyPtr &nw);
QString name() const;
unsigned capabilities() const;
void fetch(const QString &url);
void paste(const QString &, ContentType, const QString &, const QString &, const QString &);
private slots:
void fetchFinished();
private:
QNetworkReply *m_fetchReply;
};
}
#endif // SIMPLENETWORKPROTOCOL_H
|