From a45977185a485624095bff1a15024e9199eee676 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 1 Jan 2016 22:05:42 +0100 Subject: reorganize source files into SAP and agents --- capabilitypeer.h | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 capabilitypeer.h (limited to 'capabilitypeer.h') diff --git a/capabilitypeer.h b/capabilitypeer.h deleted file mode 100644 index 0ad6fc6..0000000 --- a/capabilitypeer.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef CAPABILITYPEER_H -#define CAPABILITYPEER_H - -#include -#include -#include - -#include "sapserviceinfo.h" - -class SAPPeer; -class SAPConnection; -class SAPConnectionRequest; -class SAPSocket; - -class CapabilityPeer : public QObject -{ - Q_OBJECT -public: - CapabilityPeer(SAPPeer *peer, QObject *parent = 0); - - void requestConnection(SAPConnectionRequest *request); - - int remoteAgentId(const QString &profile, SAPServiceInfo::Role role); - SAPServiceInfo remoteServiceInfo(int agentId) const; - -private: - QHash* profilesByRole(SAPServiceInfo::Role role); - -private slots: - void handleConnected(); - void handleMessageReceived(); - -private: - SAPPeer *_peer; - SAPConnection *_conn; - SAPSocket *_socket; - - struct RemoteAgent { - int agentId; - SAPServiceInfo info; - }; - - QMap _remoteAgents; - - QHash _consumerProfiles; - QHash _providerProfiles; -}; - -#endif // CAPABILITYPEER_H -- cgit v1.2.3