numericeditoremployee.cpp
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C++ 代码 · 共 55 行
CPP
55 行
/**
*
* @brief Definition of TNumericEditorEmployee
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "NumericEditorEmployee.h"
// ================= MEMBER FUNCTIONS =======================
TNumericEditorEmployee::TNumericEditorEmployee()
: iSalary(0),
iAge(21)
{
}
void TNumericEditorEmployee::SetAge(TInt aAge)
{
iAge = aAge;
}
const TInt TNumericEditorEmployee::Age() const
{
return iAge;
}
void TNumericEditorEmployee::SetSalary(TInt aSalary)
{
iSalary = aSalary;
}
const TInt TNumericEditorEmployee::Salary() const
{
return iSalary;
}
void TNumericEditorEmployee::SetName(const TDesC& aName)
{
if (aName.Length() > KMaxNameLength)
{
return;
}
iName.Copy(aName);
}
const TDes& TNumericEditorEmployee::Name() const
{
return iName;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?