|
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 "RightsResp.h" |
|
23 |
|
24 using namespace Roap; |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CRightsResp::CRightsResp |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CRightsResp::CRightsResp(): |
|
35 iSession(NULL), |
|
36 iNonce(NULL), |
|
37 iRoEncryptionKey(NULL), |
|
38 iSignature(NULL) |
|
39 { |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CRightsResp::ConstructL |
|
44 // Symbian 2nd phase constructor can leave. |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void CRightsResp::ConstructL() |
|
48 { |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CRightsResp::NewL |
|
53 // Two-phased constructor. |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 CRightsResp* CRightsResp::NewL() |
|
57 { |
|
58 CRightsResp* self = new( ELeave ) CRightsResp; |
|
59 |
|
60 CleanupStack::PushL( self ); |
|
61 self->ConstructL(); |
|
62 CleanupStack::Pop(); |
|
63 |
|
64 return self; |
|
65 } |
|
66 |
|
67 |
|
68 // Destructor |
|
69 CRightsResp::~CRightsResp() |
|
70 { |
|
71 iCertificateChain.ResetAndDestroy(); |
|
72 iOcspResponse.ResetAndDestroy(); |
|
73 iTransTrackIDs.ResetAndDestroy(); |
|
74 iContentIDs.ResetAndDestroy(); |
|
75 delete iSession; |
|
76 delete iSignature; |
|
77 delete iNonce; |
|
78 delete iRoEncryptionKey; |
|
79 delete iErrorUrl; |
|
80 } |
|
81 |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // CRightsResp::?member_function |
|
85 // ?implementation_description |
|
86 // (other items were commented in a header). |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 |
|
90 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // ?function_name implements... |
|
94 // ?implementation_description. |
|
95 // Returns: ?value_1: ?description |
|
96 // ?value_n: ?description |
|
97 // ?description |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 |
|
101 // End of File |