simpsyconfigurator/inc/simpsyuilbmodel.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2005-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:  Provides SimPsyUi listbox model that holds the
       
    15 *				          currently selected NMEA File.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CSIMPSYUILBMODEL_H_
       
    21 #define CSIMPSYUILBMODEL_H_
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>    // CBase
       
    25 #include <bamdesca.h>  	// MDesCArray
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29 *  CSimPsyUiLBModel    
       
    30 */
       
    31 
       
    32 class CSimPsyUiLBModel : public CBase, public MDesCArray
       
    33 	{
       
    34 	public: // Constructors and destructor
       
    35 		/**
       
    36         * Two-phased constructor
       
    37         */
       
    38         static CSimPsyUiLBModel* NewLC();
       
    39 
       
    40        /**
       
    41         * Two-phased constructor
       
    42         */
       
    43         static CSimPsyUiLBModel* NewL();
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         ~CSimPsyUiLBModel();
       
    49         
       
    50 	private:
       
    51 		/**
       
    52 		* Second phase of the two phase constructor
       
    53 		*/
       
    54 		void ConstructL();
       
    55 
       
    56 		/**
       
    57 		* C++ default constructor.
       
    58 		*/
       
    59 		CSimPsyUiLBModel();
       
    60 		
       
    61 	private: // From MDesCArray
       
    62         TInt MdcaCount() const;
       
    63         
       
    64         TPtrC16 MdcaPoint( TInt aIndex ) const;
       
    65       
       
    66    	private:
       
    67    		TPtrC16 MdcaPointL( TInt aIndex ) const;
       
    68    		
       
    69 	private: //data
       
    70 
       
    71         // Owns: Data Buffer holding the name of the currently
       
    72         //		 selected NMEA file.
       
    73         HBufC* iBuffer;
       
    74         
       
    75         // Owns: Sim PSY FileName
       
    76         HBufC* iFileNameText;
       
    77 	};
       
    78 
       
    79 #endif // CSIMPSYUILBMODEL_H_
       
    80 
       
    81 // End of File SimPsyUiLBModel.h