00001
00002
00003
00004
00005 #ifndef SERVICEADVERTISER_H
00006 #define SERVICEADVERTISER_H
00007
00008
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 );
00056
00063 void StopAdvertiserL();
00064
00074 void UpdateAvailabilityL(TBool );
00075
00076 private:
00077
00083 CServiceAdvertiser();
00084
00089 void ConstructL();
00090
00091 private:
00092
00093
00094 RSdp iSdp;
00095
00096 RSdpDatabase iSdpDB;
00097
00098 TSdpServRecordHandle iRecord;
00099
00100 TInt iRecordState;
00101 };
00102
00103 #endif
00104