homescreenapp/hsdomainmodel/tsrc/t_hsdomainmodel/src/abclient_mock.cpp
changeset 90 3ac3aaebaee5
equal deleted inserted replaced
86:e4f038c420f7 90:3ac3aaebaee5
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Mocked implementation of CActiveBackupClient class.
       
    15 //
       
    16 //
       
    17 
       
    18 
       
    19 #include <QtGlobal>
       
    20 #ifdef Q_OS_SYMBIAN
       
    21 
       
    22 #include "abclient.h"
       
    23 
       
    24 namespace conn
       
    25     {
       
    26 
       
    27     CActiveBackupClient::CActiveBackupClient() : iClientSession(NULL), iABCallbackHandler(NULL)
       
    28     {
       
    29     }
       
    30 
       
    31 
       
    32     EXPORT_C CActiveBackupClient* CActiveBackupClient::NewL()
       
    33     {
       
    34         CActiveBackupClient* self = new (ELeave) CActiveBackupClient();
       
    35         CleanupStack::PushL(self);
       
    36         self->ConstructL();
       
    37         CleanupStack::Pop(self);
       
    38         return self;
       
    39     }
       
    40 
       
    41     EXPORT_C CActiveBackupClient* CActiveBackupClient::NewL(MActiveBackupDataClient* aClient)
       
    42     {
       
    43         CActiveBackupClient* self = new (ELeave) CActiveBackupClient();
       
    44         CleanupStack::PushL(self);
       
    45         self->ConstructL(aClient);
       
    46         CleanupStack::Pop(self);
       
    47         return self;
       
    48     }
       
    49 
       
    50     void CActiveBackupClient::ConstructL()
       
    51     {
       
    52     }
       
    53 
       
    54     void CActiveBackupClient::ConstructL(MActiveBackupDataClient* aClient)
       
    55     {
       
    56         ConstructL();
       
    57         Q_UNUSED(aClient);
       
    58     }
       
    59 
       
    60     EXPORT_C CActiveBackupClient::~CActiveBackupClient()
       
    61     {
       
    62     }
       
    63 
       
    64     EXPORT_C void CActiveBackupClient::BURModeInfoL(TDriveList& aDriveList, TBURPartType& aBackupType, TBackupIncType& aIncBackupType)
       
    65     {
       
    66         Q_UNUSED(aDriveList);
       
    67         Q_UNUSED(aBackupType);
       
    68         Q_UNUSED(aIncBackupType);
       
    69     }
       
    70 
       
    71     EXPORT_C TBool CActiveBackupClient::DoesPartialBURAffectMeL()
       
    72     {
       
    73         return EFalse;
       
    74     }
       
    75 
       
    76     EXPORT_C void CActiveBackupClient::ConfirmReadyForBURL(TInt aErrorCode)
       
    77     {
       
    78         Q_UNUSED(aErrorCode);
       
    79     }
       
    80 
       
    81 } // end of conn namespace
       
    82 
       
    83 #endif