00001 /* 00002 * ============================================================================ 00003 * Name : TTaskManagerConnInfo from TaskManagerConnInfo.h 00004 * Part of : TaskManager 00005 * Created : 15/03/2006 by Forum Nokia 00006 * Version : 1.2 00007 * Copyright: Nokia Corporation 00008 * ============================================================================ 00009 */ 00010 00011 #ifndef TASKMANAGERCONNINFO_H 00012 #define TASKMANAGERCONNINFO_H 00013 00014 // INCLUDE FILES 00015 #include "TaskManager.hrh" 00016 00017 #include <e32std.h> 00018 #include <e32def.h> 00019 #include <s32strm.h> 00020 00021 // CLASS DECLARATION 00022 00027 class TTaskManagerConnInfo 00028 { 00029 public: // Constructors 00030 00034 TTaskManagerConnInfo(); 00035 00036 public: // Getters and setters 00037 00038 void SetServerAddress( const TDesC& aAddress ); 00039 TBufC< KMaxServerNameLength > ServerAddress() const; 00040 00041 void SetPort( const TInt aPort ); 00042 const TInt Port() const; 00043 00044 void SetUsername( const TDesC& aUsername ); 00045 TBufC< KMaxUsernameLength > Username() const; 00046 00047 void SetPassword( const TDesC& aPassword ); 00048 TBufC< KMaxPasswordLength > Password() const; 00049 00050 void SetIap( const TUint32& aId); 00051 TUint32 Iap() const; 00052 00053 public: // New functions 00054 00059 void ExternalizeL(RWriteStream& aStream) const; 00060 00065 void InternalizeL(RReadStream& aStream); 00066 00067 private: // Data members 00068 00069 // Default port, defined in .cpp file 00070 static const TInt KDefaultPort; 00071 00072 // Address of the server 00073 TBuf< KMaxServerNameLength > iServerAddress; 00074 00075 // Port number 00076 TInt iPort; 00077 00078 // Username 00079 TBuf< KMaxUsernameLength > iUsername; 00080 00081 // Password 00082 TBuf< KMaxPasswordLength > iPassword; 00083 00084 // Default IAP; 00085 TUint32 iIap; 00086 00087 }; 00088 00089 #endif 00090 00091 // End of file 00092 00093 00094 00095 00096
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.