sl@0: // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef OPENWFCJOB_H_ sl@0: #define OPENWFCJOB_H_ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: #define KNullThreadId 0 sl@0: sl@0: class COpenWfcJobManger; sl@0: sl@0: struct TOpenWfcJob sl@0: { sl@0: enum EOpenWfcJobId sl@0: { sl@0: EInvalidJobId = 0, sl@0: EComposeJobId, sl@0: EPauseCompositionJobId, sl@0: EResumeCompositionJobId, sl@0: }; sl@0: sl@0: TOpenWfcJob(COpenWfcJobManger& aJobManager); sl@0: sl@0: sl@0: ~TOpenWfcJob(); sl@0: sl@0: void Set(EOpenWfcJobId aJob, sl@0: TThreadId aThreadId = KNullThreadId, sl@0: TRequestStatus* aRequest = NULL); sl@0: sl@0: void Reset(); sl@0: sl@0: EOpenWfcJobId JobId(); sl@0: sl@0: void CompleteRequest(TInt aResult); sl@0: sl@0: void Run(); sl@0: sl@0: TDblQueLink iDlink; sl@0: COpenWfcJobManger& iJobManager; sl@0: EOpenWfcJobId iJobId; sl@0: TThreadId iCallingThread; sl@0: TRequestStatus* iCompleteRequest; sl@0: }; sl@0: sl@0: inline TOpenWfcJob::EOpenWfcJobId TOpenWfcJob::JobId() sl@0: { sl@0: return iJobId; sl@0: } sl@0: sl@0: #endif /* OPENWFCJOB_H_ */