locationsystemui/locationsysui/locpsysettings/locpsysettingseng/inc/locpsyinfo.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2002,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:  Location Psy info class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CLOCPSYINFO_H__
       
    21 #define CLOCPSYINFO_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <lbscommon.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 * Location Psy info class.
       
    31 * A data container class which holds information about psy name and id.
       
    32 */
       
    33 class CLocPsyInfo: public CBase
       
    34     {
       
    35     public: // interface
       
    36         /**
       
    37         * Returns the Location Psy id of this PSY module.
       
    38         */
       
    39         IMPORT_C TPositionModuleId PsyId() const;
       
    40 
       
    41         /**
       
    42          * Returns the name of psy module.
       
    43          */
       
    44         IMPORT_C const TDesC& PsyName() const;
       
    45         
       
    46         /**
       
    47         * C++ default constructor.
       
    48         */
       
    49         CLocPsyInfo();
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */        
       
    54         virtual ~CLocPsyInfo();
       
    55 	
       
    56 	public: // Non-exported functions
       
    57 		/**
       
    58 		 * Set the PsyId
       
    59 		 */
       
    60 		void SetPsyId(const TPositionModuleId& aPsyId);
       
    61 
       
    62 		/**
       
    63 		 * Set the Psy Name
       
    64 		 */
       
    65 		void SetPsyNameL(const TDesC& aBuf);
       
    66         
       
    67     private:  // Unimplemented functions
       
    68         /// Private, unimplemented copy constructor
       
    69         CLocPsyInfo(const CLocPsyInfo&);
       
    70         /// Private, unimplemented assignment operator
       
    71         CLocPsyInfo& operator=(const CLocPsyInfo&);
       
    72 
       
    73     public: // data members
       
    74         // Own: unique psy id
       
    75         TPositionModuleId iPsyId;
       
    76         // Own: PSY name
       
    77         HBufC* iPsyName;        
       
    78     };
       
    79 
       
    80 #endif      // CLOCPSYINFO_H__
       
    81             
       
    82 // End of File