|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <ChatServiceAdvertiser.h>
Inheritance diagram for CChatServiceAdvertiser:

Public Member Functions | |
| virtual | ~CChatServiceAdvertiser () |
Static Public Member Functions | |
| static CChatServiceAdvertiser * | NewL () |
| static CChatServiceAdvertiser * | NewLC () |
Protected Member Functions | |
| void | BuildProtocolDescriptionL (CSdpAttrValueDES *aProtocolDescriptor, TInt aPort) |
| TInt | ServiceClass () |
| const TDesC & | ServiceName () |
| const TDesC & | ServiceDescription () |
Private Member Functions | |
| CChatServiceAdvertiser () | |
| void | ConstructL () |
Private Attributes | |
| HBufC * | iServiceName |
| HBufC * | iServiceDescription |
Definition at line 30 of file ChatServiceAdvertiser.h.
|
|
~CChatServiceAdvertiser() Destroy the object and release all memory objects. Close any open sockets Definition at line 67 of file ChatServiceAdvertiser.cpp. References iServiceDescription, and iServiceName. 00068 { 00069 delete iServiceName; 00070 delete iServiceDescription; 00071 }
|
|
|
CChatServiceAdvertiser() Constructs this object Definition at line 57 of file ChatServiceAdvertiser.cpp.
|
|
|
NewL() Create a CChatServiceAdvertiser object
Definition at line 32 of file ChatServiceAdvertiser.cpp. References NewLC(). 00033 { 00034 CChatServiceAdvertiser* self = CChatServiceAdvertiser::NewLC(); 00035 CleanupStack::Pop( self ); 00036 return self; 00037 }
|
|
|
NewLC() Create a CChatServiceAdvertiser object, which will draw itself to aRect.
Definition at line 44 of file ChatServiceAdvertiser.cpp. References CChatServiceAdvertiser(). 00045 { 00046 CChatServiceAdvertiser* self = new ( ELeave ) CChatServiceAdvertiser(); 00047 CleanupStack::PushL( self ); 00048 self->ConstructL(); 00049 return self; 00050 }
|
|
||||||||||||
|
BuildProtocolDescriptionL() Builds the protocol description
Implements CChatBtServiceAdvertiser. Definition at line 90 of file ChatServiceAdvertiser.cpp. 00091 { 00092 TBuf8<1> channel; 00093 channel.Append( ( TChar )aPort ); 00094 00095 aProtocolDescriptor 00096 ->StartListL() 00097 ->BuildDESL() 00098 ->StartListL() // Details of lowest level protocol 00099 ->BuildUUIDL( KL2CAP ) 00100 ->EndListL() 00101 00102 ->BuildDESL() 00103 ->StartListL() 00104 ->BuildUUIDL( KRFCOMM ) 00105 ->BuildUintL( channel ) 00106 ->EndListL() 00107 ->EndListL(); 00108 }
|
|
Implements CChatBtServiceAdvertiser. Definition at line 132 of file ChatServiceAdvertiser.cpp.
|
|
Implements CChatBtServiceAdvertiser. Definition at line 114 of file ChatServiceAdvertiser.cpp. References iServiceName. 00115 { 00116 return *iServiceName; 00117 }
|
|
Implements CChatBtServiceAdvertiser. Definition at line 123 of file ChatServiceAdvertiser.cpp. References iServiceDescription. 00124 { 00125 return *iServiceDescription; 00126 }
|
|
|
ConstructL() 2nd phase construction of this object Definition at line 78 of file ChatServiceAdvertiser.cpp. References iServiceDescription, and iServiceName. 00079 { 00080 iServiceName = StringLoader::LoadL ( R_CHAT_SERVICE_NAME ); 00081 iServiceDescription = StringLoader::LoadL ( R_CHAT_SERVICE_DESCRIPTION ); 00082 }
|
|
|
iServiceName Owned by CChatServiceAdvertiser Definition at line 108 of file ChatServiceAdvertiser.h. |
|
|
iServiceDescription Owned by CChatServiceAdvertiser Definition at line 114 of file ChatServiceAdvertiser.h. |
|
© Nokia 2006 |