00001 00002 // Program Name: upnptaskevent.h 00003 // Created : Dec. 31, 2006 00004 // 00005 // Purpose : UPnp Task to notifing subscribers of an event 00006 // 00007 // Copyright (c) 2006 David Blain <dblain@mythtv.org> 00008 // 00009 // Licensed under the GPL v2 or later, see COPYING for details 00010 // 00012 00013 #ifndef __UPNPTASKEVENT_H__ 00014 #define __UPNPTASKEVENT_H__ 00015 00016 #include "upnp.h" 00017 #include "bufferedsocketdevice.h" 00018 00021 // 00022 // UPnpEventTask Class Definition 00023 // 00026 00027 class UPnpEventTask : public Task 00028 { 00029 protected: 00030 00031 QHostAddress m_PeerAddress; 00032 int m_nPeerPort; 00033 QByteArray *m_pPayload; 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.6.3