cbsatplugin/atmisccmdplugin/inc/atcmdasyncbase.h
changeset 32 19bd632b5100
equal deleted inserted replaced
31:a0ea99b6fa53 32:19bd632b5100
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Base class for async commands
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef ATCMDASYNCBASE_H
       
    19 #define ATCMDASYNCBASE_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <etelmm.h>
       
    23 #include "atcommandparser.h"
       
    24 #include "atcmdbase.h"
       
    25 #include "atmisccmdplugin.h"
       
    26 
       
    27 /**
       
    28  *  Abstract base class for async AT command handler interface.
       
    29  *  It can not be instantiated individually as it doesn't fully
       
    30  *  implement MATCmdBase.
       
    31  *  
       
    32  */
       
    33 NONSHARABLE_CLASS( CATCmdAsyncBase ) : public CActive,
       
    34                                       public MATCmdBase
       
    35     {
       
    36 public:
       
    37     virtual ~CATCmdAsyncBase() {};
       
    38     CATCmdAsyncBase(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
       
    39 
       
    40     // From MATCmdBase
       
    41     virtual void HandleCommandCancel();
       
    42       
       
    43 protected:
       
    44     MATMiscCmdPlugin* iCallback;
       
    45     TAtCommandParser& iATCmdParser;
       
    46     RMobilePhone& iPhone;
       
    47     };
       
    48 
       
    49 #endif // ATCMDASYNCBASE_H