williamr@2: /* williamr@2: * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * Helper class for loading PbkView resources. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef __RPbkViewResourceFile_H__ williamr@2: #define __RPbkViewResourceFile_H__ williamr@2: williamr@2: // INCLUDES williamr@2: #include williamr@2: #include "ConeResLoader.h" williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * Helper class for loading the PbkView DLL resource file. williamr@2: */ williamr@2: class RPbkViewResourceFile williamr@2: { williamr@2: public: // Interface williamr@2: /** williamr@2: * Constructor. williamr@2: * @param aEnv CONE environment where to load the resource file. williamr@2: */ williamr@2: IMPORT_C RPbkViewResourceFile(CCoeEnv& aEnv); williamr@2: williamr@2: /** williamr@2: * Opens the PbkView dll resource file for use. Leaves if the williamr@2: * resource file is already open. williamr@2: */ williamr@2: IMPORT_C void OpenL(); williamr@2: williamr@2: /** williamr@2: * Returns ETrue if the resource file is open. williamr@2: * @return ETrue if the resource file is open. williamr@2: */ williamr@2: IMPORT_C TBool IsOpen() const; williamr@2: williamr@2: /** williamr@2: * Closes the PbkView dll resource file. williamr@2: * You must always remember to close the resource file when finished williamr@2: * using it. williamr@2: */ williamr@2: IMPORT_C void Close(); williamr@2: williamr@2: private: // Data williamr@2: /// Own: resource loader williamr@2: RConeResourceLoader iLoader; williamr@2: /// Own: file open flag williamr@2: TBool iOpen; williamr@2: }; williamr@2: williamr@2: #endif // __RPbkViewResourceFile_H__ williamr@2: williamr@2: // End of File