📄 shoppingitem.h
字号:
/* Copyright (c) 2004, Nokia. All rights reserved */
#ifndef __SHOPPINGITEM_H__
#define __SHOPPINGITEM_H__
// CLASS DECLARATION
/**
* An instance of CShoppingItem represents a single item on the shopping list.
* It has a name, as an HBufC, and a set of flags, including a flag to indicate
* whether the item is marked or not.
*/
class CShoppingItem : public CBase
{
public:
/**
* NewL
* Create a CShoppingItem object
* @return a pointer to the created instance of CShoppingItem
*/
static CShoppingItem* NewL();
/**
* NewLC
* Create a CShoppingItem object
* @return a pointer to the created instance of CShoppingItem
*/
static CShoppingItem* NewLC();
/**
* ~CShoppingItem
* Destroy the object
*/
virtual ~CShoppingItem();
public:
/**
* SetNameL
* Set the name of the shopping item to 'aValue'.
* @param aValue the value to set the name to
*/
void SetNameL( HBufC* aValue );
/**
* Name
* Get the name of the shoppiing item.
* @return the name of the shopping item
*/
HBufC* Name() const;
/**
* enum TFlagsBits
* The bits corresponding to the item's flags.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -