filemanager/GFLM/inc/CGflmGlobalActionItem.h
branchRCL_3
changeset 20 491b3ed49290
parent 19 95243422089a
child 21 65326cf895ed
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
     1 /*
       
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Global action item definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CGFLMGLOBALACTIONITEM_H
       
    21 #define CGFLMGLOBALACTIONITEM_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "CGflmGroupItem.h"
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  A class representing a global action item.
       
    33 *  A global item item is visible all the time in a group.
       
    34 *
       
    35 *  @lib GFLM.lib
       
    36 *  @since 2.0
       
    37 */
       
    38 class CGflmGlobalActionItem : public CGflmGroupItem
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CGflmGlobalActionItem* NewLC(
       
    46             TInt aId, const TDesC& aCaption );
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CGflmGlobalActionItem();
       
    52 
       
    53     public: // New functions
       
    54         /**
       
    55         * Returns the id of the action item
       
    56         * @since 2.0
       
    57         * @return Id of the item
       
    58         */
       
    59         IMPORT_C TInt Id() const;
       
    60 
       
    61     public: // From CGflmGroupItem
       
    62 
       
    63         TGflmItemType Type() const;
       
    64 
       
    65         TPtrC Name() const;
       
    66 
       
    67         TTime Date() const;
       
    68 
       
    69         TInt64 Size() const;
       
    70 
       
    71         TPtrC Ext() const;
       
    72 
       
    73     protected:  // New functions
       
    74 
       
    75         /**
       
    76         * C++ default constructor.
       
    77         */
       
    78         CGflmGlobalActionItem();
       
    79 
       
    80     private:
       
    81 
       
    82         /**
       
    83         * By default Symbian 2nd phase constructor is private.
       
    84         */
       
    85         void ConstructL( const TDesC& aCaption );
       
    86 
       
    87     private:    // Data
       
    88 
       
    89         // Id of the action item
       
    90         TInt iId;
       
    91 
       
    92         // Caption of the action item
       
    93         HBufC* iCaption;
       
    94 
       
    95     };
       
    96 
       
    97 #endif      // CGFLMGLOBALACTIONITEM_H
       
    98 
       
    99 // End of File