omadrm/drmengine/roap/src/RIHello.cpp
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32base.h>
       
    22 #include "RIHello.h"
       
    23 
       
    24 using namespace Roap;
       
    25 
       
    26 // EXTERNAL DATA STRUCTURES
       
    27 //extern  ?external_data;
       
    28 
       
    29 // EXTERNAL FUNCTION PROTOTYPES  
       
    30 //extern ?external_function( ?arg_type,?arg_type );
       
    31 
       
    32 // CONSTANTS
       
    33 //const ?type ?constant_var = ?constant;
       
    34 
       
    35 // MACROS
       
    36 //#define ?macro ?macro_def
       
    37 
       
    38 // LOCAL CONSTANTS AND MACROS
       
    39 //const ?type ?constant_var = ?constant;
       
    40 //#define ?macro_name ?macro_def
       
    41 
       
    42 // MODULE DATA STRUCTURES
       
    43 //enum ?declaration
       
    44 //typedef ?declaration
       
    45 
       
    46 // LOCAL FUNCTION PROTOTYPES
       
    47 //?type ?function_name( ?arg_type, ?arg_type );
       
    48 
       
    49 // FORWARD DECLARATIONS
       
    50 //class ?FORWARD_CLASSNAME;
       
    51 
       
    52 // ============================= LOCAL FUNCTIONS ===============================
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // ?function_name ?description.
       
    56 // ?description
       
    57 // Returns: ?value_1: ?description
       
    58 //          ?value_n: ?description_line1
       
    59 //                    ?description_line2
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 
       
    63 
       
    64 // ============================ MEMBER FUNCTIONS ===============================
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // CRIHello::CRIHello
       
    68 // C++ default constructor can NOT contain any code, that
       
    69 // might leave.
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 CRIHello::CRIHello():
       
    73     iStatus(ESuccess),
       
    74     iSession(NULL),
       
    75     iRiNonce(NULL),
       
    76     iServerInfo(NULL)
       
    77     {
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CRIHello::ConstructL
       
    82 // Symbian 2nd phase constructor can leave.
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 void CRIHello::ConstructL()
       
    86     {
       
    87     iSelectedVersion.SetLength(0);
       
    88     iRiId.SetLength(0);
       
    89     iPeerKeyId.SetLength(0);
       
    90     iNeedDeviceDetails = EFalse;
       
    91     iPeerKeyIdentifier = EFalse;
       
    92     iCertificateCaching = EFalse;
       
    93     }
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CRIHello::NewL
       
    97 // Two-phased constructor.
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 CRIHello* CRIHello::NewL()
       
   101     {
       
   102     CRIHello* self = new( ELeave ) CRIHello;
       
   103     
       
   104     CleanupStack::PushL( self );
       
   105     self->ConstructL();
       
   106     CleanupStack::Pop();
       
   107 
       
   108     return self;
       
   109     }
       
   110 
       
   111     
       
   112 // Destructor
       
   113 CRIHello::~CRIHello()
       
   114     {
       
   115     delete iSession;
       
   116     delete iRiNonce;
       
   117     delete iServerInfo;
       
   118     delete iErrorUrl;
       
   119     iAlgorithms.ResetAndDestroy();
       
   120     iTrustedAuthorities.ResetAndDestroy();
       
   121     }
       
   122 
       
   123 
       
   124 // -----------------------------------------------------------------------------
       
   125 // CRIHello::?member_function
       
   126 // ?implementation_description
       
   127 // (other items were commented in a header).
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 
       
   131 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   132 
       
   133 // -----------------------------------------------------------------------------
       
   134 // ?function_name implements...
       
   135 // ?implementation_description.
       
   136 // Returns: ?value_1: ?description
       
   137 //          ?value_n: ?description
       
   138 //                    ?description
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 
       
   142 //  End of File