cmdestination.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : cmdestination.h
00004 *  Part of     : Networking Utilities / Connection Method Manager
00005 *  Description : Destination interface class.
00006 *  Version     : %version: 13 %
00007 *
00008 *  Copyright © 2006 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ==============================================================================
00017 */
00018 #ifndef DESTINATION_H
00019 #define DESTINATION_H
00020 
00021 // System includes
00022 #include <cmconnectionmethod.h>
00023 #include <cmmanagerdef.h>
00024 #include <E32def.h>
00025 #include <e32base.h>
00026 #include <metadatabase.h>
00027 
00028 // FORWARD DECLARATIONS
00029 class CCmManagerImpl;
00030 class CCmDestinationData;
00031 class CGulIcon;
00032 
00039 NONSHARABLE_CLASS(RCmDestination)
00040     {
00041     //=====================================================================
00042     // Constructors/Destructors
00043     // 
00044     public:
00045     
00047         IMPORT_C RCmDestination();
00048 
00049         IMPORT_C ~RCmDestination();
00050 
00051         IMPORT_C RCmDestination(const RCmDestination& aCmDestination);
00052         
00053     //=====================================================================
00054     // API functions
00055     public:
00056 
00062         IMPORT_C void Close();
00063             
00070         IMPORT_C TInt ConnectionMethodCount() const;
00071         
00081         IMPORT_C RCmConnectionMethod ConnectionMethodL( TInt anIndex ) const;
00082 
00089         IMPORT_C RCmConnectionMethod ConnectionMethodByIDL( 
00090                                                         TInt aCmId ) const;
00091 
00099         IMPORT_C TUint PriorityL(const RCmConnectionMethod& aCCMItem ) const;
00100         
00101         //Getting attributes
00102 
00110         IMPORT_C HBufC* NameLC() const;                        
00111         
00118         IMPORT_C TUint32 Id() const;
00119         
00126         IMPORT_C TUint32 ElementId() const;        
00127                 
00135         IMPORT_C CGulIcon* IconL() const;
00136 
00144         IMPORT_C TUint32 MetadataL( CMManager::TSnapMetadataField aMetaField ) const;
00145     
00152         IMPORT_C CMManager::TProtectionLevel ProtectionLevel() const;
00153 
00162         IMPORT_C TBool IsConnectedL() const;
00163         
00170         IMPORT_C TBool IsHidden() const;
00171 
00179         IMPORT_C TBool operator==(const RCmDestination& aDestination ) const;
00180         
00188         IMPORT_C TBool operator!=(const RCmDestination& aDestination ) const;
00189 
00197         IMPORT_C RCmDestination& operator=(const RCmDestination& 
00198                                                     aCmDestination);
00199 
00200     //=======================================================================
00201     // Member variables
00202     //
00203     private: 
00204         
00208         CCmDestinationData* iDestinatonData;
00209 
00210     private:
00211     
00212         friend class RCmManager;
00213         friend class RCmConnectionMethod;
00214     };
00215     
00216 
00217 // DESTINATION_H
00218 #endif

Copyright © Nokia Corporation 2001-2008
Back to top