shoppingitem.h

来自「Symbian 的购物程序 shoppinglist-vc」· C头文件 代码 · 共 58 行

H
58
字号
/*  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 + =
减小字号Ctrl + -
显示快捷键?