bluetoothengine/btmac/inc/btmonocmdhandler/btmcnumber.h
changeset 0 f63038272f30
child 6 6a29d5ad0713
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bluetoothengine/btmac/inc/btmonocmdhandler/btmcnumber.h	Mon Jan 18 20:28:57 2010 +0200
@@ -0,0 +1,90 @@
+/*
+* Copyright (c) 2005 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:  Gets the MSISDN
+*
+*/
+
+
+#ifndef BTMCNUMBER_H
+#define BTMCNUMBER_H
+
+//  INCLUDES
+#include <e32base.h>
+#include <etelmm.h>
+#include "btmcactive.h"
+#include "btmcobserver.h"
+
+class CBtmcProtocol;
+
+/**
+*  CBtmcNumber for getting MSISDN number.
+*/
+NONSHARABLE_CLASS(CBtmcNumber) : public CBtmcActive
+    {
+    public:
+    
+        /**
+        * Two-phased constructor.
+        */
+        static CBtmcNumber* NewL(
+            MBtmcActiveObserver& aObserver,
+            CBtmcProtocol& aProtocol, 
+            CActive::TPriority aPriority, 
+            TInt aServiceId);
+    
+        /**
+        * Destructor.
+        */
+        ~CBtmcNumber();
+    
+        void GoActive();
+        
+    protected:
+    
+        /**
+        * From CActive. Called when asynchronous request completes.
+        * @since 3.0
+        * @param None
+        * @return None
+        */
+        void RunL();
+        
+        void DoCancel();
+
+        TInt RunError(TInt aErr);
+
+    private:
+    
+        /**
+        * C++ default constructor.
+        */
+        CBtmcNumber(
+            MBtmcActiveObserver& aObserver,
+            CBtmcProtocol& aProtocol, 
+            CActive::TPriority aPriority, 
+            TInt aServiceId);
+    
+        void ConstructL();
+
+    private:
+        CBtmcProtocol& iProtocol;
+        RTelServer iServer;
+        RMobilePhone iPhone;
+        RMobileONStore iStore;
+		RMobileONStore::TMobileONEntryV1 iEntry;
+		RMobileONStore::TMobileONEntryV1Pckg iPckg;
+    };
+
+
+#endif
\ No newline at end of file