-
Notifications
You must be signed in to change notification settings - Fork 2
/
p3JsonRS.h
executable file
·49 lines (35 loc) · 1.09 KB
/
p3JsonRS.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef P3ZERORESERVERRS_H
#define P3ZERORESERVERRS_H
#include "RSJsonItems.h"
#include "retroshare/rspeers.h"
#include "plugins/rspqiservice.h"
#include "pqi/pqimonitor.h"
//#include "topjcdialog.h"
#include "msgQue.h"
#include "webbridgers.h"
#include <QMap>
#include <QString>
class p3JsonRS;
extern p3JsonRS *jsonRs;
//class WebScriptDialog;
class RsPluginHandler;
class RsPeers;
class p3JsonRS : public RsPQIService, // the service interface calls tick()
public pqiMonitor // the monitor tells us when friends changed their status
{
public:
p3JsonRS(RsPluginHandler *pgHandler, RsPeers* peers, msgQue *msgin);
virtual int tick();
virtual void statusChange(const std::list<pqipeer> &plist);
virtual void testit();
virtual void msgPeer(std::string peerId, std::string msg);//, std::string message){
msgQue * mMsgque;
WebBridgeRS * bridge;
QMap<QString,QString> compatablePeers;
private:
void handleMessage( RsJsonItem *item );
void handleJsonItem( RsJsonItem * item );
private:
RsPeers * m_peers;
};
#endif // P3ZERORESERVERRS_H