os/persistentdata/featuremgmt/featuremgr/test/shared/inc/efm_featurenotifierstepbase.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2007-2009 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 //
    15 
    16 /**
    17  @file
    18  @test
    19  @internalComponent - Internal Symbian test code 
    20 */
    21 
    22 #ifndef __EFMFEATURENOTIFIERSTEPBASE__
    23 #define __EFMFEATURENOTIFIERSTEPBASE__
    24              
    25 #include <featmgr/featurenotifier.h>
    26 #include <featmgr/featurecontrol.h>
    27 #include <test/testexecutestepbase.h>
    28 #include "efm_teststepbase.h"
    29 #include "efm_test_consts.h"
    30 
    31 
    32 
    33 class TWaitInfo
    34 {
    35 public:
    36     CPeriodic* iPeriodic;
    37     CActiveSchedulerWait* iWait;
    38 };
    39 
    40 class CFeatureNotifierStepBase : public CEFMConfigurableTestStepBase, public MFeatureObserver
    41 {
    42 public:
    43    virtual TVerdict doTestStepPreambleL(void);
    44    virtual TVerdict doTestStepPostambleL(void);
    45    void HandleNotifyChange( TFeatureChangeType aType, TFeatureEntry aFeature );
    46    void HandleNotifyError( TInt aError );
    47    void CheckNotifyRequestResultL(TUid aUid);
    48    void CheckNotifyCancelResultL(TUid aUid);   
    49    void CheckDeleteNotificationResultL(TUid aUid);   
    50 protected:
    51 	void WaitL( TInt aIntervalInMicorseconds );
    52 protected:
    53    CActiveScheduler* iSched;
    54    CActiveSchedulerWait* iWait;
    55    TBool iNotifyCompleted;   
    56    RFeatureControl icontrol;
    57 };
    58 
    59 
    60 
    61 
    62 #endif