|
1 /* |
|
2 * Copyright (c) 2002-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: SIP setting entry, which is stored to db |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "crcsesipsettingentry.h" |
|
22 #include "rcsedefaults.h" |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CRCSESIPSettingEntry::NewL |
|
29 // Two-phased constructor. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C CRCSESIPSettingEntry* CRCSESIPSettingEntry::NewL() |
|
33 { |
|
34 CRCSESIPSettingEntry* self = NewLC(); |
|
35 CleanupStack::Pop( self ); |
|
36 return self; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CRCSESIPSettingEntry::NewLC |
|
41 // Two-phased constructor. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C CRCSESIPSettingEntry* CRCSESIPSettingEntry::NewLC() |
|
45 { |
|
46 CRCSESIPSettingEntry* self = new (ELeave) CRCSESIPSettingEntry(); |
|
47 CleanupStack::PushL( self ); |
|
48 self->ResetDefaultValues(); |
|
49 return self; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CRCSESIPSettingEntry::CRCSESIPSettingEntry |
|
54 // C++ default constructor can NOT contain any code, that |
|
55 // might leave. |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 CRCSESIPSettingEntry::CRCSESIPSettingEntry() |
|
59 { |
|
60 } |
|
61 |
|
62 // Destructor |
|
63 EXPORT_C CRCSESIPSettingEntry::~CRCSESIPSettingEntry() |
|
64 { |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CRCSESIPSettingEntry::ResetDefaultValues |
|
69 // Resets SIP setting entry to default settings. |
|
70 // (other items were commented in a header). |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 void CRCSESIPSettingEntry::ResetDefaultValues() |
|
74 { |
|
75 //SIP & VOIP specific ids |
|
76 iVOIPSIPProfileSpecificId = 0; |
|
77 |
|
78 // SIP Profile ID. |
|
79 iSIPProfileId = 0; |
|
80 |
|
81 iConferenceFactoryURI = KRCSEDefaultConferenceFactoryURI; |
|
82 iMusicServerURI = KRCSEDefaultMusicServerURI; |
|
83 iVoiceMailBoxURI = KRCSEDefaultVoiceMailBoxURI; |
|
84 iCFNoAnsURI = KRCSEDefaultCFNoAnsURI; |
|
85 iCFBusyURI = KRCSEDefaultCFBusyURI; |
|
86 iCFUncondURI = KRCSEDefaultCFUncondURI; |
|
87 } |
|
88 |
|
89 // End of File |