phoneapp/phoneuiutils/inc/tphonecmdparamsingleitemfetch.h
changeset 72 c76a0b1755b9
parent 64 6aaf0276100e
child 77 2be0b271d017
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
     1 /*
       
     2 * Copyright (c) 2005 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:  Parameter class for single item fetch dialogs.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __TPHONECMDPARAMSINGLEITEMFETCH_H
       
    19 #define __TPHONECMDPARAMSINGLEITEMFETCH_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <cphcntsingleitemfetch.h>
       
    23 #include "tphonecommandparam.h"
       
    24 
       
    25 // DATA TYPES
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  A concrete parameter class for query dialogs.
       
    31 *  
       
    32 */
       
    33 class TPhoneCmdParamSingleItemFetch : public TPhoneUICommandParam
       
    34     {
       
    35     public:  
       
    36         
       
    37         /**
       
    38         * C++ default constructor.
       
    39         */
       
    40         IMPORT_C TPhoneCmdParamSingleItemFetch();
       
    41 
       
    42     public: 
       
    43         
       
    44         /**
       
    45         * Sets the single item fetch type
       
    46         * @param fetch type
       
    47         */
       
    48         IMPORT_C void SetType( CPhCntSingleItemFetch::TFetchType aType );
       
    49         
       
    50         /**
       
    51         * Returns the single item fetch type
       
    52         * @return fetch type
       
    53         */
       
    54         IMPORT_C CPhCntSingleItemFetch::TFetchType Type();
       
    55 
       
    56         /**
       
    57         * Sets the title pane resource id for the single item fetch dialog
       
    58         * @param title pane resource id
       
    59         */
       
    60         IMPORT_C void SetTitlePaneResourceId( TInt aTitlePaneResourceId );
       
    61 
       
    62         /**
       
    63         * Returns the title pane resource id for the single item fetch dialog
       
    64         * @return title pane resource id
       
    65         */
       
    66         IMPORT_C TInt TitlePaneResourceId() const;
       
    67         
       
    68         /**
       
    69         * Sets the CBA resource id for the single item fetch dialog
       
    70         * @param CBA resource id
       
    71         */
       
    72         IMPORT_C void SetCbaResourceId( TInt aCbaResourceId );
       
    73 
       
    74         /**
       
    75         * Returns the CBA resource id for the single item fetch dialog
       
    76         * @return CBA resource id
       
    77         */
       
    78         IMPORT_C TInt CbaResourceId() const;
       
    79         
       
    80         /**
       
    81         * Sets the string pointer used in the single item fetch dialog
       
    82         * @param pointer to string used in dialog
       
    83         */
       
    84         IMPORT_C void SetString( TDes* aString );
       
    85         
       
    86         /**
       
    87         * Returns the string pointer used for the single item fetch dialog
       
    88         * @return string pointer used in dialog
       
    89         */
       
    90         IMPORT_C TDes* String() const;
       
    91         
       
    92     private:   
       
    93 
       
    94         /**
       
    95         * Fetch type
       
    96         */
       
    97         CPhCntSingleItemFetch::TFetchType iType;
       
    98 
       
    99         /**
       
   100         * The title pane resource id
       
   101         */
       
   102         TInt iTitlePaneResourceId;
       
   103         
       
   104         /**
       
   105         * The CBA resource id
       
   106         */
       
   107         TInt iCbaResourceId;
       
   108         
       
   109         /**
       
   110         * The fetch dialog string pointer
       
   111         */
       
   112         TDes* iString;
       
   113         
       
   114     };
       
   115 
       
   116 #endif      // __TPHONECMDPARAMSINGLEITEMFETCH_H   
       
   117             
       
   118 // End of File