00001 00002 // Program Name: upnptaskevent.h 00003 // 00004 // Purpose - UPnp Task to notifing subscribers of an event 00005 // 00006 // Created By : David Blain Created On : Dec. 31, 2006 00007 // Modified By : Modified On: 00008 // 00010 00011 #ifndef __UPNPTASKEVENT_H__ 00012 #define __UPNPTASKEVENT_H__ 00013 00014 #include "upnp.h" 00015 #include "bufferedsocketdevice.h" 00016 00019 // 00020 // UPnpEventTask Class Definition 00021 // 00024 00025 class UPnpEventTask : public Task 00026 { 00027 protected: 00028 00029 QHostAddress m_PeerAddress; 00030 int m_nPeerPort; 00031 QByteArray *m_pPayload; 00032 00033 QCString m_sPayload; 00034 00035 protected: 00036 00037 // Destructor protected to force use of Release Method 00038 00039 virtual ~UPnpEventTask(); 00040 00041 public: 00042 00043 UPnpEventTask( QHostAddress peerAddress, 00044 int nPeerPort, 00045 QByteArray *m_pPayload ); 00046 00047 virtual QString Name () { return( "Event" ); } 00048 virtual void Execute( TaskQueue * ); 00049 00050 }; 00051 00052 00053 #endif
1.5.5