|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : ChatServiceSearcher.h 00004 * Part of : Chat 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2005-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef CHATSERVICESEARCHER_H 00017 #define CHATSERVICESEARCHER_H 00018 00019 // INCLUDES 00020 #include <e32base.h> 00021 #include "ChatBtServiceSearcher.h" 00022 #include "Log.h" 00023 00024 // CLASS DECLARATIONS 00025 /** 00026 * CChatServiceSearcher 00027 * Searches for a chat service. 00028 */ 00029 class CChatServiceSearcher : public CChatBtServiceSearcher 00030 { 00031 public: // Constructors and destructor 00032 00033 /* 00034 * NewL() 00035 * Create a CChatServiceSearcher object 00036 * @param aLog the log to send output to 00037 * @return a pointer to the created instance of 00038 * CChatServiceSearcher 00039 */ 00040 static CChatServiceSearcher* NewL( MLog& aLog ); 00041 00042 /** 00043 * NewLC() 00044 * Create a CChatServiceSearcher object 00045 * @param aLog the log to send output to 00046 * @return a pointer to the created instance of 00047 * CChatServiceSearcher 00048 */ 00049 static CChatServiceSearcher* NewLC( MLog& aLog ); 00050 00051 /** 00052 * ~CMessageServiceSearcher() 00053 * Destroy the object and release all memory objects. 00054 */ 00055 virtual ~CChatServiceSearcher(); 00056 00057 00058 public: // New function 00059 00060 /** 00061 * Port() 00062 * Retrieve the port on which the service is installed 00063 * @return the port number 00064 */ 00065 TInt Port(); 00066 00067 protected: // New functions 00068 00069 /** 00070 * ServiceClass() 00071 * @return the service class uid. 00072 */ 00073 const TUUID& ServiceClass() const; 00074 00075 /** 00076 * FoundElementL() 00077 * Read the data element 00078 * @param aKey a key that identifies the element 00079 * @param aValue the data element 00080 */ 00081 virtual void FoundElementL( TInt aKey, CSdpAttrValue& aValue ); 00082 00083 /** 00084 * ProtocolList() 00085 * @return the attribute list. 00086 */ 00087 RArray<TChatSdpAttributeParser::TChatSdpAttributeNode>& ProtocolList(); 00088 00089 private: // Constructors 00090 00091 /** 00092 * CChatServiceSearcher() 00093 * Constructs this object 00094 * @param aLog the log to send output to 00095 */ 00096 CChatServiceSearcher( MLog& aLog ); 00097 00098 /** 00099 * ConstructL() 00100 * Performs second phase construction of this object 00101 */ 00102 void ConstructL(); 00103 00104 private: // data 00105 00106 /** 00107 * iServiceClass 00108 * the service class UUID to search for 00109 */ 00110 TUUID iServiceClass; 00111 00112 /** 00113 * iPort 00114 * the port number that the remote service is installed 00115 */ 00116 TInt iPort; 00117 00118 /** 00119 * iProtocolArray 00120 * the attribute list 00121 */ 00122 RArray<TChatSdpAttributeParser::TChatSdpAttributeNode> iProtocolArray; 00123 }; 00124 00125 #endif // CHATSERVICESEARCHER_H 00126 00127 // End of File
|
© Nokia 2006 |