convergedconnectionhandler/cchclientapi/src/cchuiprivateapi.cpp
changeset 0 a4daefaec16c
equal deleted inserted replaced
-1:000000000000 0:a4daefaec16c
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:  Implementation of class CCchUiPrivateApi.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <cch.h>
       
    20 #include "cchuiprivateapi.h"
       
    21 #include "cchuiapiimpl.h"
       
    22 #include "cchuilogger.h"
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // Constructor
       
    28 // ---------------------------------------------------------------------------
       
    29 //    
       
    30 CCchUiPrivateApi::CCchUiPrivateApi()
       
    31     {
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // Constructor
       
    36 // ---------------------------------------------------------------------------
       
    37 //    
       
    38 void CCchUiPrivateApi::ConstructL( CCch& aCch )
       
    39     {
       
    40     iImpl = CCchUiApiImpl::NewL( aCch );
       
    41     }
       
    42 
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 // Constructor
       
    46 // ---------------------------------------------------------------------------
       
    47 //    
       
    48 CCchUiPrivateApi* CCchUiPrivateApi::NewL( CCch& aCch )
       
    49     {
       
    50     CCHUIDEBUG( "CCchUiPrivateApi::NewL" );
       
    51     
       
    52     CCchUiPrivateApi* privateApi = new ( ELeave ) CCchUiPrivateApi();
       
    53     CleanupStack::PushL( privateApi );
       
    54     privateApi->ConstructL( aCch );
       
    55     CleanupStack::Pop( privateApi ); 
       
    56     return privateApi;
       
    57     }
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // Destructor
       
    61 // ---------------------------------------------------------------------------
       
    62 //    
       
    63 CCchUiPrivateApi::~CCchUiPrivateApi()
       
    64     {
       
    65     CCHUIDEBUG( "CCchUiPrivateApi::~CCchUiPrivateApi - IN" );
       
    66 
       
    67     delete iImpl;
       
    68     
       
    69     CCHUIDEBUG( "CCchUiPrivateApi::~CCchUiPrivateApi - OUT" );
       
    70     }
       
    71     
       
    72 // ---------------------------------------------------------------------------
       
    73 // Manual enable has proceeded
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 void CCchUiPrivateApi::ManualEnableResultL( 
       
    77     TUint32 aServiceId, TInt aEnableResult )
       
    78     {
       
    79     CCHUIDEBUG2( "CCchUiPrivateApi::ManualEnableStartedL - aServiceId: %d", 
       
    80         aServiceId );
       
    81     CCHUIDEBUG2( "CCchUiPrivateApi::ManualEnableStartedL - aEnableResult: %d", 
       
    82         aEnableResult );        
       
    83     iImpl->ManualEnableResultL( aServiceId, aEnableResult );
       
    84     }
       
    85     
       
    86 // ---------------------------------------------------------------------------
       
    87 // AddObserver
       
    88 // ---------------------------------------------------------------------------
       
    89 //
       
    90 void CCchUiPrivateApi::AddObserverL( MCchUiObserver& aObserver )
       
    91     {
       
    92     iImpl->AddObserverL( aObserver );
       
    93     }
       
    94 
       
    95 // ---------------------------------------------------------------------------
       
    96 // RemoveObserver
       
    97 // ---------------------------------------------------------------------------
       
    98 //
       
    99 void CCchUiPrivateApi::RemoveObserver( MCchUiObserver& aObserver )
       
   100     {
       
   101     iImpl->RemoveObserver( aObserver );
       
   102     }
       
   103 
       
   104 // ---------------------------------------------------------------------------
       
   105 // ShowDialogL
       
   106 // ---------------------------------------------------------------------------
       
   107 //
       
   108 void CCchUiPrivateApi::ShowDialogL( 
       
   109     TUint32 aServiceId, 
       
   110     MCchUiObserver::TCchUiDialogType aDialog )
       
   111     {
       
   112     iImpl->ShowDialogL( aServiceId, aDialog );
       
   113     }
       
   114 
       
   115 // ---------------------------------------------------------------------------
       
   116 // ConfigureVisualizationL
       
   117 // ---------------------------------------------------------------------------
       
   118 //
       
   119 void CCchUiPrivateApi::ConfigureVisualizationL( 
       
   120     RArray<MCchUiObserver::TCchUiDialogType>& aAllowedNotes,
       
   121     RArray<TCCHSubserviceType>& aAllowedSubServices )
       
   122     {
       
   123     iImpl->ConfigureVisualizationL( aAllowedNotes, aAllowedSubServices );
       
   124     }
       
   125 
       
   126 // ---------------------------------------------------------------------------
       
   127 // CancelNotes
       
   128 // ---------------------------------------------------------------------------
       
   129 //
       
   130 void CCchUiPrivateApi::CancelNotes()
       
   131     {
       
   132     iImpl->CancelNotes();
       
   133     }
       
   134 
       
   135 // ---------------------------------------------------------------------------
       
   136 // Reserved1
       
   137 // ---------------------------------------------------------------------------
       
   138 //
       
   139 void CCchUiPrivateApi::Reserved1()
       
   140     {
       
   141     }
       
   142 
       
   143 // ---------------------------------------------------------------------------
       
   144 // Reserved2
       
   145 // ---------------------------------------------------------------------------
       
   146 //
       
   147 void CCchUiPrivateApi::Reserved2()
       
   148     {
       
   149     }