classicui_pub/common_file_dialogs_api/tsrc/inc/testsdkcfdsettingitem.h
branchGCC_SURGE
changeset 44 484cb5040995
parent 32 512f698a535d
parent 40 7165f928e888
equal deleted inserted replaced
32:512f698a535d 44:484cb5040995
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  Test Common File Dialogs
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TESTSDKCFDSETTINGITEM_H
       
    20 #define C_TESTSDKCFDSETTINGITEM_H
       
    21 
       
    22 #include <caknmemoryselectionsettingitem.h>
       
    23 #include <testsdkcfd.rsg>
       
    24 
       
    25 /**
       
    26  * CTestSettingItem derived from CAknMemorySelectionSettingItem and test it for
       
    27  * getting private member variable
       
    28  */
       
    29 class CTestSettingItem : public CAknMemorySelectionSettingItem
       
    30     {
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Constructor.
       
    35      */
       
    36     CTestSettingItem( TInt aIdentifier,
       
    37         CAknMemorySelectionSettingPage::TMemory& aSelectedMemory );
       
    38     
       
    39     /**
       
    40      * Get iExternale value.
       
    41      */
       
    42     CAknMemorySelectionDialog::TMemory GetExternalData() const;
       
    43     
       
    44     /**
       
    45      * Get iInternale value.
       
    46      */
       
    47     CAknMemorySelectionDialog::TMemory GetInternalData() const;
       
    48     
       
    49     /**
       
    50      * Get setting page pointer.
       
    51      */
       
    52     CAknMemorySelectionSettingPage* GetSettingPagePointer() const;
       
    53     
       
    54     /**
       
    55      * Get text value.
       
    56      */
       
    57     TDes GetSettingText() const;
       
    58     /**
       
    59      * Get text value.
       
    60      */
       
    61     void GetText( TDes& aDes );
       
    62     };
       
    63 
       
    64 /**
       
    65  *  CTestSettingItemList derived from CAknSettingItemList and test it for getting private member variable
       
    66  */
       
    67 class CTestSettingItemList : public CAknSettingItemList
       
    68     {
       
    69 public:
       
    70     
       
    71     /**
       
    72      * By default Symbian 2nd phase constructor is private.
       
    73      */
       
    74     void ConstructL();
       
    75     
       
    76     /**
       
    77      * Constructor.
       
    78      */
       
    79     CAknSettingItem* CreateSettingItemL( TInt aIdentifier );
       
    80 
       
    81 public:
       
    82     //Own : setting itme pointer
       
    83     CTestSettingItem* iItem;
       
    84     };
       
    85 
       
    86 #endif      // C_TESTSDKCFDSETTINGITEM_H
       
    87 
       
    88 // End of File