javaextensions/satsa/apdu/src.s60/cstsenvelope.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 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:
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSTSENVELOPE_H
       
    20 #define CSTSENVELOPE_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cstscmdapdu.h"
       
    24 
       
    25 namespace java
       
    26 {
       
    27 namespace satsa
       
    28 {
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32  *  Common envelope command APDU class.
       
    33  *
       
    34  *  @since 3.0
       
    35  */
       
    36 NONSHARABLE_CLASS(CSTSEnvelope): public CSTSCmdApdu
       
    37 {
       
    38 
       
    39 public: // Constructors and destructor
       
    40     /**
       
    41      * Two-phased constructor.
       
    42      */
       
    43     static CSTSEnvelope* NewLC(TDesC8& aApduBytes,
       
    44     CSTSApdu::TSTSApduStandard aStandard);
       
    45 
       
    46     static CSTSEnvelope* NewL(TDesC8& aApduBytes,
       
    47                               CSTSApdu::TSTSApduStandard aStandard);
       
    48 
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     virtual ~CSTSEnvelope();
       
    53 
       
    54 public: // New functions
       
    55 
       
    56     /**
       
    57      * Check is apdu in correct form according to JSR177. Leaves with proper
       
    58      * error code if needed.
       
    59      * @since 3.0
       
    60      */
       
    61     void CheckL() const;
       
    62 
       
    63     /**
       
    64      * Sets Class byte depending on whether the phone is running GSM or UMTS.
       
    65      * @since 3.0
       
    66      */
       
    67     void SetClassByte();
       
    68 
       
    69 private: //New fuctions
       
    70 
       
    71     /**
       
    72      * C++ default constructor.
       
    73      */
       
    74     CSTSEnvelope();
       
    75 
       
    76 };
       
    77 
       
    78 } // namespace satsa
       
    79 } // namespace java
       
    80 #endif // CSTSENVELOPE_H
       
    81 // End of File
       
    82