cmmanager/connection_settings_shim/inc/cmmanager_shim_s60_p.h
changeset 20 9c97ad6591ae
child 40 c5b848e6c7d1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmmanager/connection_settings_shim/inc/cmmanager_shim_s60_p.h	Mon May 03 12:53:07 2010 +0300
@@ -0,0 +1,85 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0""
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:  
+ * Private implementation of Wrapper for CM Manager Symbian interface.
+ */
+
+#ifndef CMMANAGER_SHIM_S60_P_H
+#define CMMANAGER_SHIM_S60_P_H
+
+// System includes
+
+#include <QString>
+#include <cmmanager.h>
+
+// User includes
+
+// Forward declarations
+
+class CmConnectionMethodShim;
+class CmDestinationShim;
+
+// External data types
+
+// Constants
+
+// Class declaration
+
+class CmManagerShimPrivate
+{
+
+public: 
+
+    // Data types
+
+    CmManagerShimPrivate();
+
+    ~CmManagerShimPrivate();
+    
+    CmDestinationShim *CreateDestination(QString name);
+    
+    CmConnectionMethodShim *CreateConnectionMethod(uint bearerType);
+
+    CmConnectionMethodShim* ConnectionMethod(uint connectionMethodId) const;
+    
+    void ConnectionMethod(
+        QList<uint> &cmArray,
+        bool legacyOnly) const;
+    
+    CmDestinationShim *Destination(uint destinationId) const;
+            
+    void AllDestinations(QList<uint> &destArray) const;
+    
+protected:
+
+private:
+
+    Q_DISABLE_COPY(CmManagerShimPrivate)
+
+    void ConnectionMethodL(
+        QList<uint> &cmArray,
+        bool legacyOnly) const;
+    
+    void AllDestinationsL(QList<uint> &destArray) const;
+
+    void TraceIfError(TInt error) const;
+
+private: // data
+    
+    RCmManager iCmManager;  //!< Cm Manager instance
+
+    // Friend classes
+};
+
+#endif // CMMANAGER_SHIM_S60_P_H