cbsref/telephonyrefplugins/atltsy/atcommand/generic/inc/activecommandstore.h
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 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 // This contains CActiveCommandStore which store one and only one solicited active at command and a number of active 
       
    15 // unsolicited at commands
       
    16 // 
       
    17 
       
    18 #ifndef ACTIVECOMMANDSTORE_H_
       
    19 #define ACTIVECOMMANDSTORE_H_
       
    20 
       
    21 #include "atcommandbase.h"
       
    22 
       
    23 //Class forward
       
    24 
       
    25 /**
       
    26  * This class is used to manager a list of active AT commands
       
    27  * 
       
    28  */
       
    29 class CActiveCommandStore : public CBase
       
    30 	{
       
    31 public:
       
    32     /**
       
    33      * Factory function
       
    34      */
       
    35 	static CActiveCommandStore* NewL();
       
    36 	
       
    37 	/**
       
    38 	 * Factory function
       
    39 	 */
       
    40 	static CActiveCommandStore* NewLC();
       
    41 	
       
    42 	/**
       
    43 	 * Destructor
       
    44 	 */
       
    45 	virtual ~CActiveCommandStore();
       
    46 	
       
    47 	/**
       
    48 	 * Add unsolicited AT command
       
    49 	 */
       
    50 	TInt AddUnsolicitedAtCommand(CAtCommandBase *aAtCommand);
       
    51 	
       
    52 	/**
       
    53 	 * Add the solicited AT command
       
    54 	 */
       
    55 	TInt AddSolicitedAtCommand(CAtCommandBase *aAtCommand);
       
    56 	
       
    57 	/**
       
    58 	 * Remove the At command
       
    59 	 */
       
    60 	TInt RemoveActiveAtCommand(const CAtCommandBase *aAtCommand);
       
    61 	
       
    62 	/**
       
    63 	 * Get the active command list
       
    64 	 */
       
    65 	RPointerArray<CAtCommandBase>& GetActiveCommandArray();
       
    66 protected:
       
    67     /**
       
    68      * constructor
       
    69      */
       
    70 	CActiveCommandStore();
       
    71 	
       
    72 	/**
       
    73 	 * 2nd constructor
       
    74 	 */
       
    75 	void ConstructL();
       
    76 private:
       
    77     /**
       
    78      * The list store the acitve AT command solicited and unsolicited
       
    79      */
       
    80 	RPointerArray<CAtCommandBase> iArray;
       
    81 	};
       
    82 
       
    83 #endif /*ACTIVECOMMANDSTORE_H_*/