equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include "cntviewparameters.h" |
18 #include "cntviewparameters.h" |
|
19 #include <QDebug> |
19 |
20 |
20 CntViewParameters::CntViewParameters(CntViewParameters::ViewId activateView, CntViewParameters::ViewId previousViewId) : |
21 CntViewParameters::CntViewParameters(CntViewParameters::ViewId activateView, CntViewParameters::ViewId previousViewId) : |
21 mActivateViewId(activateView), |
22 mActivateViewId(activateView), |
22 mPreviousViewId(previousViewId) |
23 mPreviousViewId(previousViewId) |
23 { |
24 { |
29 mPreviousViewId = viewParameters.previousViewId(); |
30 mPreviousViewId = viewParameters.previousViewId(); |
30 |
31 |
31 mContact = viewParameters.selectedContact(); |
32 mContact = viewParameters.selectedContact(); |
32 mDetail = viewParameters.selectedDetail(); |
33 mDetail = viewParameters.selectedDetail(); |
33 mGroupContact = viewParameters.selectedGroupContact(); |
34 mGroupContact = viewParameters.selectedGroupContact(); |
|
35 mParams = viewParameters.parameters(); |
34 } |
36 } |
35 |
37 |
36 CntViewParameters::~CntViewParameters() |
38 CntViewParameters::~CntViewParameters() |
37 { |
39 { |
38 } |
40 } |
39 |
41 |
40 void CntViewParameters::setNextViewId(const ViewId activateViewId) |
42 void CntViewParameters::setNextViewId(const CntViewParameters::ViewId& activateViewId) |
41 { |
43 { |
42 mActivateViewId = activateViewId; |
44 mActivateViewId = activateViewId; |
43 } |
45 } |
44 |
46 |
45 CntViewParameters::ViewId CntViewParameters::nextViewId() const |
47 CntViewParameters::ViewId CntViewParameters::nextViewId() const |
94 |
96 |
95 QContact CntViewParameters::selectedGroupContact() const |
97 QContact CntViewParameters::selectedGroupContact() const |
96 { |
98 { |
97 return mGroupContact; |
99 return mGroupContact; |
98 } |
100 } |
|
101 |
|
102 void CntViewParameters::setParameters(const QMap<int,QVariant>& aMap) |
|
103 { |
|
104 mParams = aMap; |
|
105 } |
|
106 |
|
107 QMap<int,QVariant> CntViewParameters::parameters() const |
|
108 { |
|
109 return mParams; |
|
110 } |