cmmanager/connection_settings_shim/inc/cmdestination_shim_s60_p.h
changeset 20 9c97ad6591ae
child 40 c5b848e6c7d1
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
       
     1 /*
       
     2  * Copyright (c) 2010 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:  
       
    15  * Private implementation of Wrapper for CM Manager Symbian interface.
       
    16  */
       
    17 
       
    18 #ifndef CMDESTINATION_SHIM_P_H
       
    19 #define CMDESTINATION_SHIM_P_H
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <QString>
       
    24 #include <cmmanagerdefines_shim.h>
       
    25 
       
    26 // User includes
       
    27 
       
    28 // Forward declarations
       
    29 
       
    30 class RCmDestination;
       
    31 class CmConnectionMethodShim;
       
    32 
       
    33 // External data types
       
    34 
       
    35 // Constants
       
    36 
       
    37 // Class declaration
       
    38 
       
    39 class CmDestinationShimPrivate
       
    40 {
       
    41 
       
    42 public:
       
    43 
       
    44     // Data types
       
    45 
       
    46     CmDestinationShimPrivate(RCmDestination &destination);
       
    47 
       
    48     ~CmDestinationShimPrivate();
       
    49     
       
    50     int ConnectionMethodCount() const;
       
    51            
       
    52     CmConnectionMethodShim *ConnectionMethod(int index) const;
       
    53            
       
    54     CmConnectionMethodShim *ConnectionMethodByID(uint cmId) const;
       
    55 
       
    56     uint Priority(CmConnectionMethodShim *cmItem) const;
       
    57            
       
    58     QString Name() const;
       
    59            
       
    60     uint Id() const;
       
    61 
       
    62     uint Metadata(CMManagerShim::SnapMetadataField metadataField) const;
       
    63 
       
    64     CMManagerShim::CmmProtectionLevel ProtectionLevel() const;
       
    65            
       
    66     bool IsHidden() const;
       
    67            
       
    68     int AddConnectionMethod(CmConnectionMethodShim *cm);            
       
    69        
       
    70     void DeleteConnectionMethod(CmConnectionMethodShim *cm);
       
    71        
       
    72     void RemoveConnectionMethod(CmConnectionMethodShim *cm);
       
    73     
       
    74     void ModifyPriority(CmConnectionMethodShim *cm, int index);
       
    75     
       
    76     void SetName(QString name);
       
    77     
       
    78     void Update();               
       
    79     
       
    80     void Refresh();
       
    81     
       
    82     void DeleteDestination();
       
    83     
       
    84 protected:
       
    85 
       
    86 private:
       
    87                  
       
    88     Q_DISABLE_COPY(CmDestinationShimPrivate)
       
    89 
       
    90     void PriorityL(CmConnectionMethodShim *cmShim, uint &priority) const;
       
    91     
       
    92     void NameL(QString &name) const;
       
    93            
       
    94     void AddConnectionMethodL(CmConnectionMethodShim *cm, int &index);            
       
    95        
       
    96     void DeleteConnectionMethodL(CmConnectionMethodShim *cm);
       
    97        
       
    98     void RemoveConnectionMethodL(CmConnectionMethodShim *cm);
       
    99              
       
   100     void ModifyPriorityL(CmConnectionMethodShim *cm, int index);
       
   101            
       
   102     void SetNameL(QString name);
       
   103               
       
   104     CMManagerShim::CmmProtectionLevel mapCmmProtectionLevel( 
       
   105         CMManager::TProtectionLevel protectionlvl) const;
       
   106     
       
   107     void TraceIfError(TInt error) const;
       
   108     
       
   109 private: // data
       
   110         
       
   111     RCmDestination iDestination;  //!< CmManager Destination instance
       
   112     
       
   113     // Friend classes
       
   114     
       
   115 };
       
   116 
       
   117 #endif // CMDESTINATION_SHIM_P_H