equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-2007 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "cprintsettings.h" |
|
21 #include "cbasecapability.h" |
|
22 |
|
23 // CONSTRUCTION |
|
24 CPrintSettings::CPrintSettings() |
|
25 { |
|
26 } |
|
27 |
|
28 // Default destructor |
|
29 CPrintSettings::~CPrintSettings() |
|
30 { |
|
31 iCapabilities.ResetAndDestroy(); |
|
32 } |
|
33 |
|
34 // Clone this instance and return it |
|
35 CPrintSettings* CPrintSettings::CloneL() |
|
36 { |
|
37 CPrintSettings* clone = new ( ELeave ) CPrintSettings; |
|
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 |