|
1 /* |
|
2 * Copyright (c) 2006 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: Add number to existing name and save the number. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHCNTVPBKSAVEADDTONAME_H |
|
20 #define CPHCNTVPBKSAVEADDTONAME_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "CPhoneCntSaveAddToName.h" |
|
25 |
|
26 /** |
|
27 * Add number to existing name and save the number. |
|
28 * |
|
29 * @lib PhoneCntFinder |
|
30 * @since S60 v3.1 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CPhCntPbkSaveAddToName ) |
|
33 : public CBase, |
|
34 public MPhoneCntSaveAddToName |
|
35 { |
|
36 public: // New functions |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 * @param aPbkOwner Phonebook owner. |
|
40 * @return new instance of the class. |
|
41 */ |
|
42 static CPhCntPbkSaveAddToName* NewL( MPhoneCntPbkOwner& aPbkOwner ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~CPhCntPbkSaveAddToName(); |
|
48 |
|
49 public : // Functions from base classes |
|
50 |
|
51 /** |
|
52 * From MPhoneCntSaveAddToName |
|
53 */ |
|
54 void HandlePbkOperationL( |
|
55 const TCntPhoneNumber& aTelNumber, |
|
56 TInt aCommand ); |
|
57 |
|
58 /** |
|
59 * From MPhoneCntSaveAddToName |
|
60 * @since 3.0 |
|
61 */ |
|
62 void HandlePbkOperationL( |
|
63 const TCntPhoneNumber& aTelNumber, |
|
64 TInt aCommand, |
|
65 TCntNumberType aNumberType ); |
|
66 |
|
67 private: |
|
68 |
|
69 /** |
|
70 * C++ constructor. |
|
71 */ |
|
72 CPhCntPbkSaveAddToName( MPhoneCntPbkOwner& aPbkOwner ); |
|
73 |
|
74 /** |
|
75 * Symbian OS constructor. |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 private://data |
|
80 // Phoneboo owner |
|
81 MPhoneCntPbkOwner& iPbkOwner; |
|
82 |
|
83 // Phonebook saver |
|
84 CPbkDataSaveAppUi* iPbkDataSaveAppUi; |
|
85 }; |
|
86 |
|
87 |
|
88 #endif // CPHCNTVPBKSAVEADDTONAME_H |