cbsatplugin/atmisccmdplugin/inc/cbccommandhandler.h
author hgs
Mon, 12 Jul 2010 19:13:27 +0300
changeset 44 6d10bd0d821a
parent 32 19bd632b5100
permissions -rw-r--r--
201027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
 * All rights reserved.
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
 * Initial Contributors:
hgs
parents:
diff changeset
     9
 * Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
 *
hgs
parents:
diff changeset
    11
 * Contributors:
hgs
parents:
diff changeset
    12
 * 
hgs
parents:
diff changeset
    13
 * Description :
hgs
parents:
diff changeset
    14
 * 
hgs
parents:
diff changeset
    15
 * CCBCCommandHandler class declaration for AT+CBC command
hgs
parents:
diff changeset
    16
 * 
hgs
parents:
diff changeset
    17
 */
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
#ifndef CBCCOMMANDHANDLER_H
hgs
parents:
diff changeset
    20
#define CBCCOMMANDHANDLER_H
hgs
parents:
diff changeset
    21
32
hgs
parents: 26
diff changeset
    22
#include "atcmdasyncbase.h"
26
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
/**
hgs
parents:
diff changeset
    25
 *  AT+CBC command handler implementation class
hgs
parents:
diff changeset
    26
 */
hgs
parents:
diff changeset
    27
NONSHARABLE_CLASS( CCBCCommandHandler ) : public CATCmdAsyncBase
hgs
parents:
diff changeset
    28
    {
hgs
parents:
diff changeset
    29
public:
hgs
parents:
diff changeset
    30
    static CCBCCommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
hgs
parents:
diff changeset
    31
    ~CCBCCommandHandler();
hgs
parents:
diff changeset
    32
    
hgs
parents:
diff changeset
    33
private: // methods from CActive
hgs
parents:
diff changeset
    34
    virtual void RunL();
hgs
parents:
diff changeset
    35
    virtual void DoCancel();
hgs
parents:
diff changeset
    36
    // RunError not needed as RunL does not leave
hgs
parents:
diff changeset
    37
32
hgs
parents: 26
diff changeset
    38
private: // method from CATCmdAsyncBase::MATCmdBase    
26
hgs
parents:
diff changeset
    39
    virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded );
hgs
parents:
diff changeset
    40
    
hgs
parents:
diff changeset
    41
private:
hgs
parents:
diff changeset
    42
    CCBCCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
hgs
parents:
diff changeset
    43
    void ConstructL();
hgs
parents:
diff changeset
    44
    
hgs
parents:
diff changeset
    45
private:
hgs
parents:
diff changeset
    46
    RBuf8 iReply;
hgs
parents:
diff changeset
    47
    
hgs
parents:
diff changeset
    48
    RMobilePhone::TMobilePhoneBatteryInfoV1 iBatteryInfo;
hgs
parents:
diff changeset
    49
    };
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
#endif /* CBCCOMMANDHANDLER_H */