|
1 /* |
|
2 * Copyright (c) 2009 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: IPSec SA lifetime structure |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // CLASS HEADER |
|
20 #include "ipsecsalifetime.h" |
|
21 |
|
22 // ======== MEMBER FUNCTIONS ======== |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // Constructor. |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 EXPORT_C TIpsecSALifetime::TIpsecSALifetime( TUint32 aAllocations, |
|
29 const TInt64& aBytes, |
|
30 const TInt64& aAddtime, |
|
31 const TInt64& aUsetime ) |
|
32 : iAllocations( aAllocations ), |
|
33 iBytes(aBytes), |
|
34 iAddtime(aAddtime), |
|
35 iUsetime(aUsetime) |
|
36 { |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // Assignment operator. |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 EXPORT_C TIpsecSALifetime& TIpsecSALifetime::operator=( const TIpsecSALifetime& aSource ) |
|
44 { |
|
45 if ( this != &aSource ) |
|
46 { |
|
47 iAllocations = aSource.iAllocations; |
|
48 iBytes = aSource.iBytes; |
|
49 iAddtime = aSource.iAddtime; |
|
50 iUsetime = aSource.iUsetime; |
|
51 } |
|
52 return *this; |
|
53 } |