javaextensions/satsa/apdu/src.s60/cstspath.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 CSTSPATH_H
       
    20 #define CSTSPATH_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cstsasn1sequence.h"
       
    24 
       
    25 namespace java
       
    26 {
       
    27 namespace satsa
       
    28 {
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32  *  Path type module
       
    33  *
       
    34  *  Path ::= SEQUENCE {
       
    35  *      path OCTET STRING,
       
    36  *      index INTEGER (0..pkcs15-ub-index) OPTIONAL,
       
    37  *      length [0] INTEGER (0..pkcs15-ub-index) OPTIONAL
       
    38  *      }( WITH COMPONENTS {..., index PRESENT, length PRESENT}|
       
    39  *      WITH COMPONENTS {..., index ABSENT, length ABSENT})
       
    40  *
       
    41  *  @since 3.0
       
    42  */
       
    43 NONSHARABLE_CLASS(CSTSPath): public CSTSASN1Sequence
       
    44 {
       
    45 public: // Constructors and destructor
       
    46     /**
       
    47      * Two-phased constructor.
       
    48      */
       
    49     static CSTSPath* NewLC();
       
    50 
       
    51     static CSTSPath* NewL();
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     virtual ~CSTSPath();
       
    57 
       
    58 public: // New functions
       
    59 
       
    60     /**
       
    61      * Getter for Path
       
    62      * @since 3.0
       
    63      * @return Path in TDesC reference
       
    64      */
       
    65     const TDesC8& Path() const;
       
    66 
       
    67 public: // Functions from base classes
       
    68 
       
    69     /**
       
    70      * From MSTSASN1Module
       
    71      * @since 3.0
       
    72      * @param aRawData raw-data to be parsed in this instance
       
    73      */
       
    74     void DecodeL(const TDesC8& aRawData);
       
    75 
       
    76 protected: // New functions
       
    77 
       
    78     /**
       
    79      * Protected construction to allow derivation
       
    80      */
       
    81     void ConstructL();
       
    82 
       
    83     /**
       
    84      * C++ default constructor.
       
    85      */
       
    86     CSTSPath();
       
    87 
       
    88 protected: // Data
       
    89     // FID or absolute/relative path depending on situation, owned
       
    90     HBufC8* iPath;
       
    91 
       
    92 };
       
    93 
       
    94 } // namespace satsa
       
    95 } // namespace java
       
    96 #endif // CSTSPATH_H
       
    97 // End of File
       
    98