equal
deleted
inserted
replaced
|
1 /*! |
|
2 * Copyright (c) 2010 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: Provides information about ongoing calls. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "dialpadsymbianwrapper.h" |
|
19 #include "dialpadsymbianwrapper_p_stub.h" |
|
20 |
|
21 DialpadSymbianWrapperPrivate::DialpadSymbianWrapperPrivate(DialpadSymbianWrapper *parent) : |
|
22 q_ptr(parent), |
|
23 mTimes(0) |
|
24 { |
|
25 } |
|
26 |
|
27 DialpadSymbianWrapperPrivate::~DialpadSymbianWrapperPrivate() |
|
28 { |
|
29 } |
|
30 |
|
31 int DialpadSymbianWrapperPrivate::getMailboxNumber(QString &vmbxNumber) |
|
32 { |
|
33 int errValue(0); |
|
34 switch( mTimes ) { |
|
35 case 0: |
|
36 case 1:{ |
|
37 errValue = -1; |
|
38 break; |
|
39 } |
|
40 case 2:{ |
|
41 errValue = 0; |
|
42 break; |
|
43 } |
|
44 default: |
|
45 break; |
|
46 } |
|
47 |
|
48 return errValue; |
|
49 } |
|
50 |
|
51 int DialpadSymbianWrapperPrivate::getVideoMailboxNumber(QString &vmbxNumber) |
|
52 { |
|
53 return getMailboxNumber(vmbxNumber); |
|
54 } |
|
55 |
|
56 int DialpadSymbianWrapperPrivate::defineMailboxNumber(QString &vmbxNumber) |
|
57 { |
|
58 int errValue(0); |
|
59 |
|
60 switch( mTimes ) { |
|
61 case 0:{ |
|
62 errValue = 0; |
|
63 vmbxNumber.append("12345678"); |
|
64 break; |
|
65 } |
|
66 case 1:{ |
|
67 errValue = -3; |
|
68 vmbxNumber.append(""); |
|
69 break; |
|
70 } |
|
71 default: |
|
72 break; |
|
73 } |
|
74 mTimes++; |
|
75 return errValue; |
|
76 } |
|
77 |
|
78 int DialpadSymbianWrapperPrivate::defineVideoMailboxNumber(QString &vmbxNumber) |
|
79 { |
|
80 return defineMailboxNumber(vmbxNumber); |
|
81 } |