diff -r 3104fc151679 -r 9a48e301e94b uiservicetab/vimpstui/inc/ccommandinfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstui/inc/ccommandinfo.h Wed Sep 01 12:33:36 2010 +0100 @@ -0,0 +1,101 @@ +/* +* Copyright (c) 2008 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: ccomandinfo.h + * +*/ + +#ifndef __CCOMMANDINFO_H__ +#define __CCOMMANDINFO_H__ + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class TResourceReader; + +/** + * command info + */ +class CCommandInfo : public CBase + { + + public: + /** + * Static factory function that performs the 2-phased construction. + * + * @param aReader Reference to resource reader to be used + * @param aId Id of the component owning the command IDs + * @param anewCommandIds New command IDs + * @return New instance of this class + */ + static CCommandInfo* NewLC( TResourceReader& aReader, + TInt32 aPluginId, + TInt& aNewCommandIds ); + + /** + * Destructor. + */ + ~CCommandInfo(); + + public: + + /** + * Gets the ID related to this command ID + * + * @return The ID related to this command ID + */ + TInt32 PliginId() const; + + /** + * Gets the new command ID + * + * @return The new command ID + */ + TInt32 NewCommandId() const; + + /** + * Gets the old/original command ID + * + * @return The old/original command ID + */ + TInt32 OldCommandId() const; + + private: + + /** + * Constructor. + */ + CCommandInfo( TInt32 aPluginId ); + + /** + * 2nd phase constructor. + */ + void ConstructL( TResourceReader& aReader, + TInt& aNewCommandIds ); + + private: // Data + // plugin id + TInt32 iPluginId; + + //new command id form the command pool + TInt32 iNewCommandId; + + //old command id from the plugin + TInt32 iOldCommandId; + }; + + +#endif // __CCOMMANDINFO_H__ + +// End of File