omadrm/drmengine/roap/src/JoinDomainResp.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 "JoinDomainResp.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 // ============================ MEMBER FUNCTIONS ===============================
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CJoinDomainResp::CJoinDomainResp
       
    67 // C++ default constructor can NOT contain any code, that
       
    68 // might leave.
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 CJoinDomainResp::CJoinDomainResp() :
       
    72     iSignature(NULL),
       
    73     iTransportScheme(EOma)
       
    74     {
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CJoinDomainResp::ConstructL
       
    79 // Symbian 2nd phase constructor can leave.
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 void CJoinDomainResp::ConstructL()
       
    83     {
       
    84     iDomainExpiration = Time::MaxTTime();
       
    85     iHashChainSupport = EFalse;
       
    86     }
       
    87 
       
    88 // -----------------------------------------------------------------------------
       
    89 // CJoinDomainResp::NewL
       
    90 // Two-phased constructor.
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 CJoinDomainResp* CJoinDomainResp::NewL()
       
    94     {
       
    95     CJoinDomainResp* self = new( ELeave ) CJoinDomainResp;
       
    96     
       
    97     CleanupStack::PushL( self );
       
    98     self->ConstructL();
       
    99     CleanupStack::Pop();
       
   100 
       
   101     return self;
       
   102     }
       
   103 
       
   104     
       
   105 // Destructor
       
   106 CJoinDomainResp::~CJoinDomainResp()
       
   107     {
       
   108     delete iSignature;
       
   109     delete iErrorUrl;
       
   110     iMacs.ResetAndDestroy();
       
   111     iDomainKeys.ResetAndDestroy();
       
   112     iCertificateChain.ResetAndDestroy();
       
   113     iOcspResponse.ResetAndDestroy();
       
   114     iDomainKeyIDs.ResetAndDestroy();
       
   115     }
       
   116 
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 // CJoinDomainResp::?member_function
       
   120 // ?implementation_description
       
   121 // (other items were commented in a header).
       
   122 // -----------------------------------------------------------------------------
       
   123 //
       
   124 
       
   125 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   126 
       
   127 // -----------------------------------------------------------------------------
       
   128 // ?function_name implements...
       
   129 // ?implementation_description.
       
   130 // Returns: ?value_1: ?description
       
   131 //          ?value_n: ?description
       
   132 //                    ?description
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 
       
   136 //  End of File