email/pop3andsmtpmtm/servermtmutils/mobilitytestframework/inc/cmsgtestpropertywatcher.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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 // cmsgtestpropertwatcher.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef __CMSGTESTPROPERTYWATCHER_H__
       
    25 #define __CMSGTESTPROPERTYWATCHER_H__
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <e32property.h>
       
    29 
       
    30 class MMsgTestPropertyWatcher;
       
    31 
       
    32 class CMsgTestPropertyWatcher : public CActive
       
    33 	{
       
    34 public:
       
    35 	IMPORT_C static CMsgTestPropertyWatcher* NewL(TUid aCategory, TUint aKey, MMsgTestPropertyWatcher& aCallback);
       
    36 	IMPORT_C virtual ~CMsgTestPropertyWatcher();
       
    37     
       
    38 	IMPORT_C RProperty& Property();
       
    39 	
       
    40 protected:
       
    41 	void ConstructL(TUid aCategory, TUint aKey,  MMsgTestPropertyWatcher& aCallback);
       
    42 	CMsgTestPropertyWatcher();
       
    43      
       
    44 private:
       
    45 	void RunL();
       
    46 	void DoCancel();
       
    47     
       
    48 public:
       
    49 	//TBD: these should be private.
       
    50 	TUid iCategory;
       
    51 	TUint iKey;
       
    52 
       
    53 private:
       
    54 	MMsgTestPropertyWatcher* iCallback;
       
    55 
       
    56 protected:
       
    57 	RProperty iProperty;
       
    58 	};
       
    59 
       
    60 #endif //__CMSGTESTPROPERTYWATCHER_H__