examples/ForumNokia/BluetoothPMPExample/inc/ServiceAdvertiser.h

00001 /*
00002  * Copyright © 2009 Nokia Corporation.
00003  */
00004 
00005 #ifndef SERVICEADVERTISER_H
00006 #define SERVICEADVERTISER_H
00007 
00008 // INCLUDES
00009 #include <e32base.h>
00010 
00011 #include <coecntrl.h>
00012 #include <es_sock.h>
00013 #include <btdevice.h>
00014 #include <bt_sock.h>
00015 #include <btsdp.h>
00016 #include <btmanclient.h> 
00017 
00018 #include "Common.h"
00019 
00020 
00021 class CServiceAdvertiser : public CBase
00022 {
00023 public:
00024      
00031     static CServiceAdvertiser* NewL();
00032         
00037     static CServiceAdvertiser* NewLC();
00038 
00044     ~CServiceAdvertiser();
00045 
00055     void StartAdvertiserL(TInt /*aChannel*/);
00056 
00063     void StopAdvertiserL();
00064 
00074     void UpdateAvailabilityL(TBool /*aAvailable*/);
00075         
00076 private:
00077 
00083     CServiceAdvertiser();
00084 
00089     void ConstructL();
00090 
00091 private:    // data
00092 
00093     // service discovery protocol session
00094     RSdp iSdp;
00095     // service discovery database (sdp)
00096     RSdpDatabase iSdpDB;
00097     // service record
00098     TSdpServRecordHandle iRecord;
00099     // service record state
00100     TInt iRecordState;
00101 };
00102 
00103 #endif
00104 

Generated by  doxygen 1.6.2