numericeditoremployee.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 56 行

H
56
字号
#ifndef NUMERICEDITOREMPLOYEE_H
#define NUMERICEDITOREMPLOYEE_H

// INCLUDES

// System Includes
#include <E32BASE.H>
#include <in_sock.h>

// User Includes
#include "NumericEditor.hrh"

// FORWARD DECLARATIONS


// CLASS DECLARATION

/**
*
* @class    TNumericEditorEmployee NumericEditorEmployee.h
* @brief    This is a class for storing the player data
* based on the standard Symbian OS architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version    1.0
*
*/
class TNumericEditorEmployee
{
public: // Constructor
    TNumericEditorEmployee();

public: // Access functions
    // Note that salary is actually a fixed-point point value.
    // The true value of salary can be calculated by dividing 
    // by 10^number of decimal places - in this case 100.
    void SetSalary(TInt aSalary);
    const TInt Salary() const;

    void SetAge(TInt aAge);
    const TInt Age() const;

    // Should be no longer than KMaxNameLength. Will not set if too long
    void SetName(const TDesC& aName);
    const TDes& Name() const;

private: // Data
    TBuf<KMaxNameLength> iName;
    TInt iSalary;
    TInt iAge;
};

#endif    // #ifndef NUMERICEDITOREMPLOYEE_H

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?