First public contribution.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 #ifndef __MMFCUSTOMCOMMANDPARSERMANAGER_H__
18 #define __MMFCUSTOMCOMMANDPARSERMANAGER_H__
24 Class to manage custom command parsers.
26 An object of this type is owned by the controller framework to contain all the custom command
27 parsers for the controller plugin.
31 class CMMFCustomCommandParserManager : public CBase
37 @return A pointer to the newly created object.
41 IMPORT_C static CMMFCustomCommandParserManager* NewL();
46 Deletes all custom command parsers added to the manager.
50 IMPORT_C ~CMMFCustomCommandParserManager();
53 Attempts to find a custom command parser capable of handling the message.
56 The message to be handled.
58 @return A boolean indicating in the message has been handled. ETrue if the message has been handled, EFalse
63 IMPORT_C TBool HandleRequest(TMMFMessage& aMessage);
66 Adds a custom command parser to the manager. The manager takes ownership of the parser.
69 This method will leave if it fails to add the parser. If it does leave, ownership
70 of the parser will remain with the caller.
73 A reference to the parser to be added to the manager.
77 IMPORT_C void AddCustomCommandParserL(CMMFCustomCommandParserBase& aParser);
79 CMMFCustomCommandParserManager();
82 The array of custom command parsers.
84 RPointerArray<CMMFCustomCommandParserBase> iParsers;
87 #endif __MMFCUSTOMCOMMANDPARSERMANAGER_H__