diff -r 072a5fa0c63b -r c6bafb5162d8 voicerecorder/NewServiceSrc/CNewFileServiceClientImpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/voicerecorder/NewServiceSrc/CNewFileServiceClientImpl.h Wed Sep 01 12:29:14 2010 +0100 @@ -0,0 +1,93 @@ +/* +* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation for client side API +* +*/ + + + +#ifndef NEWFILESERVICECLIENTIMPL_H +#define NEWFILESERVICECLIENTIMPL_H + +// INCLUDES +#include +#include +#include +#include +#include + +// FORWARD DECLARATIONS +class RFile; +class CApaServerAppExitMonitor; +class CAiwGenericParamList; + +// CLASS DECLARATION + +/** +* Actual implementation class for client side API +* +* @lib NewService.lib +* @since Series 60 3.0 +*/ +class CNewFileServiceClientImpl : public CNewFileServiceClient, + public MAknServerAppExitObserver + { + + public: // New functions + + static CNewFileServiceClientImpl* NewL(); + + ~CNewFileServiceClientImpl(); + + public: // From CNewFileServiceClient + TBool NewFileL( CDesCArray& aFileNames, + CAiwGenericParamList* aParams, + TNewServiceFileType aFileType, + TBool aMultipleFiles ); + + TBool NewFileL( TUid aApplicationUid, + CDesCArray& aFileNames, + CAiwGenericParamList* aParams, + TNewServiceFileType aFileType, + TBool aMultipleFiles ); + + TBool NewFileL( RFile& aFileHandle, + CAiwGenericParamList* aParams, + TNewServiceFileType aFileType ); + + TBool NewFileL( TUid aApplicationUid, + RFile& aFileHandle, + CAiwGenericParamList* aParams, + TNewServiceFileType aFileType ); + + public: // from MApaServerAppExitObserver + void HandleServerAppExit( TInt aReason ); + + private: + + void ConstructL(); + + HBufC8* SerializeGenericParamListLC( CAiwGenericParamList* aParams ); + + private: + + CApaServerAppExitMonitor* iServerAppMonitor; + + RNewFileServiceClient iClient; + + }; + +#endif // NEWFILESERVICECLIENTIMPL_H + +// End of File