diff -r 000000000000 -r e686773b3f54 logsui/logsserviceextension/inc/clogsiconfileprovider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/logsui/logsserviceextension/inc/clogsiconfileprovider.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2007 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: Icon file provider. +* +*/ + + + +#ifndef C_CLOGSICONFILEPROVIDER_H +#define C_CLOGSICONFILEPROVIDER_H + +#include +#include + +/** + * Icon file provider. + * See MAknIconFileProvider.h for further information. + * + * @since S60 v3.2 + */ +NONSHARABLE_CLASS(CLogsIconFileProvider) : public CBase, + public MAknIconFileProvider + { + +public: + + /** + * Two-phased constructor. + * @param aFile + */ + static CLogsIconFileProvider* NewL( RFile& aFile ); + + /** + * Destructor. + */ + virtual ~CLogsIconFileProvider(); + +public: + +// from base class MAknIconFileProvider + + /** + * From MAknIconFileProvider + * + * @see MAknIconFileProvider + */ + void RetrieveIconFileHandleL( + RFile& aFile, + const TIconFileType aType ); + + /** + * From MAknIconFileProvider + */ + void Finished(); + +private: + + /** + * C++ default constructor. + * + * @see MAknIconFileProvider + */ + CLogsIconFileProvider(); + + /** + * Symbian second phase constructor + */ + void ConstructL( RFile& aFile ); + +private: // data + + /** + * Handle to the icon file + * Own. + */ + RFile iFile; + + }; + +#endif // C_CLOGSICONFILEPROVIDER_H