sysstatemgmt/systemstatereferenceplugins/custcmd/inc/cmdvalidatertc.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 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 //Custom command to validate RTC and publish the result using Publish and Subscribe mechanism
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef __CMDVALIDATERTC_H__
       
    23 #define __CMDVALIDATERTC_H__
       
    24 
       
    25 #include <ssm/ssmcustomcommand.h>
       
    26 #include <ssm/ssmadaptationcli.h>
       
    27 
       
    28 NONSHARABLE_CLASS (CCustomCmdValidateRTC) :  public CActive, public MSsmCustomCommand
       
    29 	{
       
    30 public:
       
    31 	static CCustomCmdValidateRTC* NewL();
       
    32 
       
    33 	// from MSsmcustomCommand
       
    34 	TInt Initialize(CSsmCustomCommandEnv* aCmdEnv);
       
    35 	void Execute(const TDesC8& aParams, TRequestStatus& aStatus);
       
    36 	void Close();
       
    37 	void Release();
       
    38 	void ExecuteCancel();
       
    39 
       
    40 protected:
       
    41     virtual void RunL();
       
    42     virtual void DoCancel();
       
    43     virtual TInt RunError(TInt aError);
       
    44 
       
    45 private:
       
    46 	CCustomCmdValidateRTC();
       
    47 	~CCustomCmdValidateRTC();
       
    48 	void CompleteClientRequest(TInt aError);
       
    49 private:
       
    50 	RSsmRtcAdaptation iSsmRtcAdaptation;
       
    51 	TPckgBuf<TBool> iPckgValidateRtc;
       
    52 	TRequestStatus* iExecuteRequest;
       
    53 	};
       
    54 
       
    55 #endif // __CMDVALIDATERTC_H__