author | hgs |
Fri, 15 Oct 2010 12:58:46 +0300 | |
changeset 78 | baacf668fe89 |
parent 50 | 377c906a8701 |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* ============================================================================ |
|
3 |
* Name : |
|
4 |
* Part of : |
|
5 |
* Description : |
|
50 | 6 |
* Version : %version: 6 % |
37 | 7 |
* |
8 |
* Copyright 2008 Nokia. All rights reserved. |
|
9 |
* This material, including documentation and any related computer |
|
10 |
* programs, is protected by copyright controlled by Nokia. All |
|
11 |
* rights are reserved. Copying, including reproducing, storing, |
|
12 |
* adapting or translating, any or all of this material requires the |
|
13 |
* prior written consent of Nokia. This material also contains |
|
14 |
* confidential information which may not be disclosed to others |
|
15 |
* without the prior written consent of Nokia. |
|
16 |
* ============================================================================ |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef MENUEXTENSION_STUB_H_ |
|
20 |
#define MENUEXTENSION_STUB_H_ |
|
21 |
||
22 |
#include <QObject> |
|
23 |
#include <hbaction.h> |
|
24 |
||
25 |
/*! |
|
26 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
27 |
* All rights reserved. |
|
28 |
* This component and the accompanying materials are made available |
|
29 |
* under the terms of "Eclipse Public License v1.0" |
|
30 |
* which accompanies this distribution, and is available |
|
31 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
32 |
* |
|
33 |
* Initial Contributors: |
|
34 |
* Nokia Corporation - initial contribution. |
|
35 |
* |
|
36 |
* Contributors: |
|
37 |
* |
|
38 |
* Description: |
|
39 |
* |
|
40 |
*/ |
|
41 |
||
42 |
#include <xqteluicommandextension.h> |
|
43 |
||
44 |
||
45 |
#ifdef BUILD_DLL |
|
46 |
#define DLL_EXPORT Q_DECL_EXPORT |
|
47 |
#else |
|
48 |
#define DLL_EXPORT Q_DECL_IMPORT |
|
49 |
#endif |
|
50 |
||
51 |
class SvtMenu : public QObject, public XQTelUiCommandExtension |
|
52 |
{ |
|
53 |
Q_OBJECT |
|
54 |
Q_INTERFACES(XQTelUiCommandExtension) |
|
55 |
||
56 |
public: |
|
57 |
SvtMenu(); |
|
58 |
||
59 |
virtual ~SvtMenu(); |
|
60 |
||
61 |
/*! |
|
62 |
\fn void modifyMenuItemList(QList<int> &menuCmdList) |
|
63 |
||
64 |
Modifies menu command list. List contains current list |
|
65 |
of menu commands. Interface can add new commands which should be hanled |
|
66 |
by call handling or remove commands if list contains unsupported call |
|
67 |
commands. |
|
68 |
*/ |
|
69 |
virtual void modifyMenuCommandList(const QList<CallInfo> &callInfo, |
|
70 |
QList<int> &menuCmdList); |
|
71 |
||
72 |
/*! |
|
73 |
\fn void modifyButtonCommandList(QList<int> &menuCmdList) |
|
74 |
||
75 |
Modifies push button command list. CallInfo contains current call |
|
76 |
information and buttonCmdList contains current list of push |
|
77 |
button commands. |
|
78 |
Interface can remove commands if list contains unsupported call |
|
79 |
commands (For example if service doesn't support conference call). |
|
80 |
*/ |
|
81 |
virtual void modifyPushButtonCommandList(const QList<CallInfo> &callInfo, |
|
82 |
QList<int> &buttonCmdList); |
|
83 |
||
84 |
/*! |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
85 |
\fn void modifyToolBarCommandList(QList<int> &menuCmdList) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
86 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
87 |
Modifies tool bar command list. CallInfo contains current call |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
88 |
information and toolBarCmdList contains current list of tool |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
89 |
bar commands. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
90 |
Interface can remove/disable commands if the command list contains |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
91 |
unsupported call commands (For example if service doesn't support |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
92 |
conference call) or add commads which should be handled by telephony |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
93 |
call handling (maximum amount of tool bar commands is 4 and list |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
94 |
index 0 is used for right button). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
95 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
96 |
void modifyToolBarCommandList(const QList<CallInfo> &callInfo, |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
97 |
QList<XQTelUiCommandExtension::ToolBarCommand> &toolBarCmdList); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
98 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
99 |
/*! |
37 | 100 |
\fn void addMenuActions(QList<HbAction*> &menuActions) |
101 |
||
102 |
Adds actions to menu. Interface adds own actions to the list which |
|
103 |
should be added to the call menu. |
|
104 |
Interface is the responsible for handling action triggers. |
|
105 |
Ownership of the actions in not transferred. |
|
106 |
*/ |
|
107 |
virtual void addMenuActions(const QList<CallInfo> &callInfo,QList<HbAction*> &menuActions); |
|
108 |
||
109 |
/*! |
|
110 |
\fn void getCallsL(QList<CallInfo> &calls) |
|
111 |
||
112 |
Releases menu actions. Method is called when menu is not needed |
|
113 |
anymore and interface can release own menu actions. |
|
114 |
*/ |
|
115 |
virtual void releaseMenu(); |
|
116 |
||
117 |
/*! |
|
118 |
\fn void release() |
|
119 |
||
120 |
Releases plugin. Method is called when menu plugin is not needed |
|
121 |
anymore and interface can release all resources. |
|
122 |
*/ |
|
123 |
virtual void release(); |
|
124 |
||
125 |
||
126 |
||
127 |
}; |
|
128 |
||
129 |
#endif /* MENUEXTENSION_STUB_H_ */ |