tsrc/centralrepositorystub/src/cenrepnotifyhandlerstub.cpp
branchRCL_3
changeset 33 bc78a40cd63c
parent 11 ff8a573c0e2e
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     1 /*
       
     2 * Copyright (c) 2005 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 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "cenrepnotifyhandler.h"
       
    20 #include "centralrepository.h"
       
    21 
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 //
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 CCenRepNotifyHandler::CCenRepNotifyHandler(
       
    28      MCenRepNotifyHandlerCallback& aCallback, 
       
    29      CRepository& aSession)
       
    30      : iSession(aSession), iCallback(aCallback)
       
    31     {
       
    32     } 
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 EXPORT_C CCenRepNotifyHandler* CCenRepNotifyHandler::NewL(
       
    39      MCenRepNotifyHandlerCallback& aCallback, 
       
    40      CRepository& aSession)
       
    41     {
       
    42     CCenRepNotifyHandler* newInstance = NewLC(aCallback, aSession);
       
    43     CleanupStack::Pop();
       
    44     return newInstance;
       
    45     }
       
    46 
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 EXPORT_C CCenRepNotifyHandler* CCenRepNotifyHandler::NewLC(
       
    53      MCenRepNotifyHandlerCallback& aCallback, 
       
    54      CRepository& aSession)
       
    55     {
       
    56     CCenRepNotifyHandler* newInstance = new (ELeave) CCenRepNotifyHandler(aCallback, aSession);
       
    57     CleanupStack::PushL( newInstance );
       
    58     
       
    59     return newInstance;
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 EXPORT_C CCenRepNotifyHandler::~CCenRepNotifyHandler()
       
    67     {
       
    68     
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 EXPORT_C void CCenRepNotifyHandler::StartListeningL()
       
    76     {
       
    77     
       
    78     }
       
    79 
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 EXPORT_C void CCenRepNotifyHandler::StopListening()
       
    86     {
       
    87     
       
    88     }
       
    89 
       
    90 
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 EXPORT_C void MCenRepNotifyHandlerCallback::HandleNotifyGeneric(TUint32 /*aId*/)
       
    97     {
       
    98     
       
    99     }