1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
34 // CLASS DECLARATION |
34 // CLASS DECLARATION |
35 /** |
35 /** |
36 * Creates connection to central repository and handles data flow from/to it |
36 * Creates connection to central repository and handles data flow from/to it |
37 * |
37 * |
38 * @lib vmbxengine.lib |
38 * @lib vmbxengine.lib |
39 * @since S60 v5.2 |
|
40 */ |
39 */ |
41 NONSHARABLE_CLASS( CVmbxCenRepHandler ) : public CBase, |
40 NONSHARABLE_CLASS( CVmbxCenRepHandler ) : public CBase, |
42 public MVmbxCenrepHandler |
41 public MVmbxCenrepHandler |
43 { |
42 { |
44 public: // Constructors and destructor |
43 public: // Constructors and destructor |
56 public: // New functions |
55 public: // New functions |
57 |
56 |
58 /** |
57 /** |
59 * Get saved mailbox number |
58 * Get saved mailbox number |
60 * |
59 * |
61 * @since S60 v5.2 |
|
62 * @param aEntry saved vmbx number data |
60 * @param aEntry saved vmbx number data |
63 * @return Symbian OS error code (KErrNone if successful) |
61 * @return Symbian OS error code (KErrNone if successful) |
64 */ |
62 */ |
65 TInt GetVmbxNumber( CVoiceMailboxEntry& aEntry ); |
63 TInt GetVmbxNumber( CVoiceMailboxEntry& aEntry ); |
66 |
64 |
67 /** |
65 /** |
68 * Saves the mailbox number |
66 * Saves the mailbox number |
69 * |
67 * |
70 * @since S60 v5.2 |
|
71 * @param aEntry vmbx number data to save |
68 * @param aEntry vmbx number data to save |
72 * @return Symbian OS error code (KErrNone if successful) |
69 * @return Symbian OS error code (KErrNone if successful) |
73 */ |
70 */ |
74 TInt Save( const CVoiceMailboxEntry& aEntry ); |
71 TInt Save( const CVoiceMailboxEntry& aEntry ); |
75 |
72 |
76 /** |
73 /** |
77 * Fetches active store type |
74 * Fetches active store type |
78 * |
75 * |
79 * @since S60 v5.2 |
|
80 * @return aStoreType Active store in use |
76 * @return aStoreType Active store in use |
81 */ |
77 */ |
82 TVmbxMemoryLocation StoreType(); |
78 TVmbxMemoryLocation StoreType(); |
83 |
79 |
84 /** |
80 /** |
85 * Returns state of the video support |
81 * Returns state of the video support |
86 * |
82 * |
87 * @since S60 v5.2 |
|
88 * @return ETrue if supported |
83 * @return ETrue if supported |
89 */ |
84 */ |
90 TBool VideoSupported(); |
85 TBool VideoSupported(); |
91 |
86 |
92 /** |
87 /** |
93 * Returns ETrue if CenRep setting Sim read only |
88 * Returns ETrue if CenRep setting Sim read only |
94 * |
89 * |
95 * @since S60 v5.2 |
|
96 * @return ETrue if CenRep setting Sim read only |
90 * @return ETrue if CenRep setting Sim read only |
97 */ |
91 */ |
98 TBool IsSimReadOnly(); |
92 TBool IsSimReadOnly(); |
99 |
93 |
100 /** |
94 /** |
101 * Returns ETrue if number allowed to user change |
95 * Returns ETrue if number allowed to user change |
102 * |
96 * |
103 * @since S60 v5.2 |
|
104 * @return ETrue if from Sim |
97 * @return ETrue if from Sim |
105 */ |
98 */ |
106 TBool IsAllowedUserEdit(); |
99 TBool IsAllowedUserEdit(); |
107 |
100 |
108 private: // New functions |
101 private: // New functions |
119 void ConstructL(); |
112 void ConstructL(); |
120 |
113 |
121 /** |
114 /** |
122 * Resolves Voice CenRep key to be used |
115 * Resolves Voice CenRep key to be used |
123 * |
116 * |
124 * @since S60 v5.2 |
|
125 * @param in aLine current ALS lne |
117 * @param in aLine current ALS lne |
126 * @return CenRep key |
118 * @return CenRep key |
127 */ |
119 */ |
128 TUint32 VoiceCenRepKey( const TVmbxAlsLineType& aLine ); |
120 TUint32 VoiceCenRepKey( const TVmbxAlsLineType& aLine ); |
129 |
121 |
130 /** |
122 /** |
131 * Resolves Video CenRep key to be used |
123 * Resolves Video CenRep key to be used |
132 * |
124 * |
133 * @since S60 v5.2 |
|
134 * @param in aLine current ALS lne |
125 * @param in aLine current ALS lne |
135 * @return CenRep key |
126 * @return CenRep key |
136 */ |
127 */ |
137 TUint32 VideoCenRepKey( const TVmbxAlsLineType& aLine ); |
128 TUint32 VideoCenRepKey( const TVmbxAlsLineType& aLine ); |
138 |
129 |
139 /** |
130 /** |
140 * Resolves CenRep key to be used |
131 * Resolves CenRep key to be used |
141 * |
132 * |
142 * @since S60 v5.2 |
|
143 * @param aEntry entry type |
133 * @param aEntry entry type |
144 * @return CenRep key |
134 * @return CenRep key |
145 */ |
135 */ |
146 TUint32 ResolveKeyByEntry( const CVoiceMailboxEntry& aEntry ); |
136 TUint32 ResolveKeyByEntry( const CVoiceMailboxEntry& aEntry ); |
147 |
137 |