localconnectivityservice/lccustomplugin/inc/lclistallcmd.h
branchRCL_3
changeset 7 a2f12998bb04
parent 0 c3e98f10fcf4
equal deleted inserted replaced
5:11d83199e2d9 7:a2f12998bb04
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Handles the commands "AT+CLAC?" and "AT+CLAC"
    14 * Description:  Handles the commands "AT+CLAC=?" and "AT+CLAC"
    15 *
    15 *
    16 */
    16 */
    17 
       
    18 
    17 
    19 #ifndef C_LCLISTALLCMD_H
    18 #ifndef C_LCLISTALLCMD_H
    20 #define C_LCLISTALLCMD_H
    19 #define C_LCLISTALLCMD_H
    21 
    20 
    22 #include "lccustomplugin.h"
    21 #include "lccustomplugin.h"
    23 
       
    24 /**  Handler types for the two AT commands */
       
    25 enum TCmdHandlerType
       
    26     {
       
    27     ECmdHandlerTypeUndefined,
       
    28     ECmdHandlerTypeQuery,  // For command "AT+CLAC=?"
       
    29     ECmdHandlerTypeList    // For command "AT+CLAC"
       
    30     };
       
    31 
    22 
    32 /**
    23 /**
    33  *  Class for handling commands "AT+CLAC=?" and "AT+CLAC"
    24  *  Class for handling commands "AT+CLAC=?" and "AT+CLAC"
    34  *
    25  *
    35  *  @since S60 v5.0
    26  *  @since S60 v5.0
    54 private:
    45 private:
    55 
    46 
    56     CLcListAllCmd( MLcCustomPlugin* aCallback );
    47     CLcListAllCmd( MLcCustomPlugin* aCallback );
    57 
    48 
    58     void ConstructL();
    49     void ConstructL();
       
    50 
       
    51     /**
       
    52      * Checks command types
       
    53      *
       
    54      * @since TB9.2
       
    55      * @param aCmd Command to check
       
    56      * @return ETrue if command understood, EFalse otherwise
       
    57      */
       
    58     TBool CheckCommand( const TDesC8& aCmd );
       
    59 
       
    60     /**
       
    61      * Main command handler (leaving version)
       
    62      *
       
    63      * @since TB9.2
       
    64      * @return ETrue if command understood, EFalse otherwise
       
    65      */
       
    66     TBool HandleCommandL();
       
    67 
       
    68 // from base class MLcCustomPluginBase
    59 
    69 
    60     /**
    70     /**
    61      * Reports the support status of an AT command. This is a synchronous API.
    71      * Reports the support status of an AT command. This is a synchronous API.
    62      *
    72      *
    63      * @param aCmd The AT command. Its format may vary depending on the
    73      * @param aCmd The AT command. Its format may vary depending on the
   124     /**
   134     /**
   125      * Handler type for the two AT commands
   135      * Handler type for the two AT commands
   126      */
   136      */
   127     TCmdHandlerType iCmdHandlerType;
   137     TCmdHandlerType iCmdHandlerType;
   128 
   138 
       
   139     /**
       
   140      * Detected command
       
   141      */
       
   142     TDetectedCmd iDetectedCmd;
       
   143 
   129 };
   144 };
   130 
   145 
   131 #endif  // C_LCLISTALLCMD_H
   146 #endif  // C_LCLISTALLCMD_H