irda/irdastack/irtranp/COMMANDP.H
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 1997-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15  
       
    16 #ifndef COMMANDPROCESSOR_H
       
    17 #define COMMANDPROCESSOR_H
       
    18 
       
    19 class AbstractCommand;
       
    20 
       
    21 /*
       
    22  * Name:		CommandProcessor
       
    23  *
       
    24  * Description:	Contains a queue of commands to be sent to CComReadWrite
       
    25  *
       
    26  */
       
    27 
       
    28 NONSHARABLE_CLASS(CommandProcessor)
       
    29 {
       
    30 private:
       
    31 	// Array of pointers to the commands - commandqueue that is. Note the number - same as m_iMaxCommands
       
    32 	AbstractCommand* m_CommandQueue[20];
       
    33 	// Where we are in the queue
       
    34 	int m_iCommands;
       
    35 	// Maximum number of commands that we can hold
       
    36 	int m_iMaxCommands;
       
    37 
       
    38 public:
       
    39 	CommandProcessor();
       
    40 	~CommandProcessor();
       
    41 	void Add(AbstractCommand* a_oCommand);
       
    42 	void DoCommand();
       
    43 	void ShiftQueue();
       
    44 };
       
    45 
       
    46 #endif // COMMANDPROCESSOR_H