00001 /* 00002 * ============================================================================ 00003 * Name : CSendingServiceInfo.h 00004 * Part of : SendUi 00005 * Description : Encapsulates the ECom plugged sending service data. 00006 * Version : 1.0 00007 * 00008 * Copyright © 2002-2004 Nokia. All rights reserved. 00009 * This material, including documentation and any related 00010 * computer programs, is protected by copyright controlled by 00011 * Nokia. All rights are reserved. Copying, including 00012 * reproducing, storing, adapting or translating, any 00013 * or all of this material requires the prior written consent of 00014 * Nokia. This material also contains confidential 00015 * Information which may not be disclosed to others without the 00016 * prior written consent of Nokia. 00017 * 00018 * ============================================================================ 00019 */ 00020 00021 #ifndef CSENDINGSERVICEINFO_H 00022 #define CSENDINGSERVICEINFO_H 00023 00024 // INCLUDES 00025 #include <e32Base.h> 00026 //#include <SendUi.h> // TSendingCapabilities 00027 00028 // FORWARD DECLARATIONS 00029 class TSendingCapabilities; 00030 class CSendingServiceInfoImpl; 00031 00032 // CLASS DECLARATION 00033 00040 class CSendingServiceInfo : public CBase 00041 { 00042 public: 00043 00044 enum TServiceFeatures 00045 { 00046 EServiceInValid = 1, 00047 EServiceHidden = 2, 00048 EServiceCanSendDirectly = 4, 00049 ENotUsed3 = 8 00050 }; 00051 00052 public: // Constructors and destructor 00053 00058 IMPORT_C static CSendingServiceInfo* NewL(); 00059 00064 IMPORT_C static CSendingServiceInfo* NewLC(); 00065 00069 IMPORT_C virtual ~CSendingServiceInfo(); 00070 00071 public: // New functions 00072 00078 IMPORT_C CSendingServiceInfo* CopyLC() const; 00079 00087 IMPORT_C void SetServiceNameL( const TDesC& aServiceName ); 00088 00095 IMPORT_C const TPtrC ServiceName() const; 00096 00104 IMPORT_C void SetServiceMenuNameL( const TDesC& aServiceMenuName ); 00105 00111 IMPORT_C const TPtrC ServiceMenuName() const; 00112 00119 IMPORT_C void SetServiceAddressL( const TDesC& aServiceAddress ); 00120 00126 IMPORT_C const TPtrC ServiceAddress() const; 00127 00134 IMPORT_C void SetServiceId( TUid aServiceId ); 00135 00141 IMPORT_C TUid ServiceId() const; 00142 00149 IMPORT_C void SetServiceProviderId( TUid aServiceProviderId ); 00150 00156 IMPORT_C TUid ServiceProviderId() const; 00157 00158 00164 IMPORT_C void SetTechnologyTypeId( TUid aTechnologyType ); 00170 IMPORT_C TUid TechnologyTypeId() const; 00171 00172 00179 IMPORT_C void SetServiceCapabilities( 00180 TSendingCapabilities aServiceCapabilities ); 00181 00187 IMPORT_C TSendingCapabilities ServiceCapabilities() const; 00188 00195 IMPORT_C void SetServiceFeatures( 00196 TInt aServiceFeatures ); 00197 00203 IMPORT_C TInt ServiceFeatures() const; 00204 00205 00206 private: 00207 00208 00212 CSendingServiceInfo(); 00213 00217 void ConstructL(); 00218 00219 private: // Data 00220 00221 CSendingServiceInfoImpl* iServiceInfoImpl; 00222 }; 00223 00224 // CSENDINGSERVICEINFO_H 00225 #endif 00226 00227 // End of File