zeroconfadvertisement.h

00001 #ifndef __ZEROCONFADVERTISEMENT_H__
00002 #define __ZEROCONFADVERTISEMENT_H__
00003 
00004 #include <e32base.h>
00005 #include <zeroconf/zeroconfprotocols.h>
00006 
00007 namespace Zeroconf
00008         {
00009 
00010         class RZeroconfSession;
00011 
00024         class RZeroconfAdvertisement : public RSubSessionBase
00025                 {
00026         public:
00035                 IMPORT_C void OpenL(RZeroconfSession& aSession);
00036                 
00050                 IMPORT_C void CreateServiceL(const TDesC& aServiceName, const TDesC& aServiceType, 
00051                         TServiceProtocol aProtocol, TUint16 aPort);
00052                 
00061                 IMPORT_C void SetPortL(TUint16 aPort);
00062                 
00074                 IMPORT_C void SetServiceParameterL(const TDesC& aKey, const TDesC& aValue);
00075                 
00085                 IMPORT_C TInt DeleteServiceParameter(const TDesC& aKey);
00086                 
00098                 IMPORT_C void Advertise(TRequestStatus& aStatus);
00099                 
00109                 IMPORT_C void UpdateServiceL();
00110                 
00118                 IMPORT_C void Close();
00119                 };
00120 
00121         }
00122 
00123 #endif /* __ZEROCONFADVERTISEMENT_H__ */