📄 taskmanagerconninfo.h
字号:
/*
* ============================================================================
* Name : TTaskManagerConnInfo from TaskManagerConnInfo.h
* Part of : TaskManager
* Created : 08/31/2005 by Forum Nokia
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef TASKMANAGERCONNINFO_H
#define TASKMANAGERCONNINFO_H
// INCLUDE FILES
#include "TaskManager.hrh"
#include <e32std.h>
#include <e32def.h>
#include <s32strm.h>
// CLASS DECLARATION
/**
* A class for holding connections settings.
*
*/
class TTaskManagerConnInfo
{
public: // Constructors
/**
* Constructor
*/
TTaskManagerConnInfo();
public: // Getters and setters
void SetServerAddress( const TDesC& aAddress );
TBufC< KMaxServerNameLength > ServerAddress() const;
void SetPort( const TInt aPort );
const TInt Port() const;
void SetUsername( const TDesC& aUsername );
TBufC< KMaxUsernameLength > Username() const;
void SetPassword( const TDesC& aPassword );
TBufC< KMaxPasswordLength > Password() const;
void SetIap( const TUint32& aId);
TUint32 Iap() const;
public: // New functions
/**
* Saves connections setting to the stream.
* @param aStream the stream where data is written.
*/
void ExternalizeL(RWriteStream& aStream) const;
/**
* Reads the connections settings from the stream.
* @param aStream the stream where the data is read from.
*/
void InternalizeL(RReadStream& aStream);
private: // Data members
// Default port, defined in .cpp file
static const TInt KDefaultPort;
// Address of the server
TBuf< KMaxServerNameLength > iServerAddress;
// Port number
TInt iPort;
// Username
TBuf< KMaxUsernameLength > iUsername;
// Password
TBuf< KMaxPasswordLength > iPassword;
// Default IAP;
TUint32 iIap;
};
#endif
// End of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -