equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * {Description of the file} |
|
16 * |
|
17 */ |
|
18 |
|
19 // User include files |
|
20 #include "directprintprintsettings.h" |
|
21 #include "directprintbasecapability.h" |
|
22 |
|
23 // CONSTRUCTION |
|
24 CDirectPrintPrintSettings::CDirectPrintPrintSettings() |
|
25 { |
|
26 } |
|
27 |
|
28 // Default destructor |
|
29 CDirectPrintPrintSettings::~CDirectPrintPrintSettings() |
|
30 { |
|
31 iCapabilities.ResetAndDestroy(); |
|
32 } |
|
33 |
|
34 // Clone this instance and return it |
|
35 CDirectPrintPrintSettings* CDirectPrintPrintSettings::CloneL() |
|
36 { |
|
37 CDirectPrintPrintSettings* clone = new ( ELeave ) CDirectPrintPrintSettings; |
|
38 CleanupStack::PushL( clone ); |
|
39 |
|
40 TInt i( 0 ); |
|
41 TInt num( iCapabilities.Count() ); |
|
42 for ( i = 0; i < num; i++ ) |
|
43 { |
|
44 User::LeaveIfError( |
|
45 clone->iCapabilities.Append( iCapabilities[i]->CloneL() ) ); |
|
46 } |
|
47 |
|
48 CleanupStack::Pop(); // clone |
|
49 |
|
50 return clone; |
|
51 } |
|
52 |
|
53 // End of File |