mediator/src/clientstub/mediatorcommandresponderstub.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2006 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:  A stub implementation of an interface for responding to Mediator Service commands.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    <e32base.h>
       
    22 #include    "MediatorCommandResponder.h"
       
    23 #include    "MediatorCommandResponderBody.h"
       
    24 #include    "Debug.h"
       
    25 
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ===============================
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // CMediatorCommandResponder::CMediatorCommandResponder
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CMediatorCommandResponder::CMediatorCommandResponder( )
       
    34     {
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CMediatorCommandResponder::ConstructL
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 void CMediatorCommandResponder::ConstructL( MMediatorCommandObserver* /*aObserver*/ )
       
    42     {
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CMediatorCommandResponder::NewL
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CMediatorCommandResponder* CMediatorCommandResponder::NewL( MMediatorCommandObserver* aObserver )
       
    50     {
       
    51     CMediatorCommandResponder* self = new( ELeave ) CMediatorCommandResponder( );
       
    52     
       
    53     CleanupStack::PushL( self );
       
    54     self->ConstructL( aObserver );
       
    55     CleanupStack::Pop( self );
       
    56 
       
    57     return self;
       
    58     }
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // CMediatorCommandResponder::~CMediatorCommandResponder
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 CMediatorCommandResponder::~CMediatorCommandResponder()
       
    65     {
       
    66     }
       
    67 
       
    68     
       
    69 // -----------------------------------------------------------------------------
       
    70 // CMediatorCommandResponder::RegisterCommand
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 EXPORT_C TInt CMediatorCommandResponder::RegisterCommand( 
       
    74                                         TUid /*aDomain*/,
       
    75                                         TUid /*aCategory*/, 
       
    76                                         const RCommandList& /*aCommands*/ )
       
    77     {
       
    78     return KErrNotSupported;
       
    79     }
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // CMediatorCommandResponder::RegisterCommand
       
    83 // -----------------------------------------------------------------------------
       
    84 //        
       
    85 EXPORT_C TInt CMediatorCommandResponder::RegisterCommand( TUid /*aDomain*/, 
       
    86                                                           TUid /*aCategory*/, 
       
    87                                                           TInt /*aCommandId*/, 
       
    88                                                           TVersion /*aVersion*/,
       
    89                                                           TCapabilitySet /*aCaps*/, 
       
    90                                                           TInt /*aTimeOut*/ )
       
    91     {
       
    92     return KErrNotSupported;
       
    93     }
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CMediatorCommandResponder::UnregisterCommand
       
    97 // -----------------------------------------------------------------------------
       
    98 //        
       
    99 EXPORT_C TInt CMediatorCommandResponder::UnregisterCommand( 
       
   100                                             TUid /*aDomain*/, 
       
   101                                             TUid /*aCategory*/,
       
   102                                             const RCommandList& /*aCommands*/ )
       
   103     {
       
   104     return KErrNotSupported;
       
   105     }
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 // CMediatorCommandResponder::UnregisterCommand
       
   109 // -----------------------------------------------------------------------------
       
   110 //        
       
   111 EXPORT_C TInt CMediatorCommandResponder::UnregisterCommand( 
       
   112                                          TUid /*aDomain*/, 
       
   113                                          TUid /*aCategory*/, 
       
   114                                          TInt /*aCommandId*/ )
       
   115     {
       
   116     return KErrNotSupported;
       
   117     }
       
   118 
       
   119 // -----------------------------------------------------------------------------
       
   120 // CMediatorCommandResponder::IssueResponse
       
   121 // -----------------------------------------------------------------------------
       
   122 //        
       
   123 EXPORT_C TInt CMediatorCommandResponder::IssueResponse( TUid /*aDomain*/,
       
   124                                                         TUid /*aCategory*/, 
       
   125                                                         TInt /*aCommandId*/,
       
   126                                                         TInt /*aStatus*/, 
       
   127                                                         const TDesC8& /*aData*/ )
       
   128     {
       
   129     return KErrNotSupported;
       
   130     }