37
|
1 |
/*
|
|
2 |
* ============================================================================
|
|
3 |
* Name :
|
|
4 |
* Part of :
|
|
5 |
* Description :
|
|
6 |
* Version : %version: 2 %
|
|
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 |
/*!
|
|
85 |
\fn void addMenuActions(QList<HbAction*> &menuActions)
|
|
86 |
|
|
87 |
Adds actions to menu. Interface adds own actions to the list which
|
|
88 |
should be added to the call menu.
|
|
89 |
Interface is the responsible for handling action triggers.
|
|
90 |
Ownership of the actions in not transferred.
|
|
91 |
*/
|
|
92 |
virtual void addMenuActions(const QList<CallInfo> &callInfo,QList<HbAction*> &menuActions);
|
|
93 |
|
|
94 |
/*!
|
|
95 |
\fn void getCallsL(QList<CallInfo> &calls)
|
|
96 |
|
|
97 |
Releases menu actions. Method is called when menu is not needed
|
|
98 |
anymore and interface can release own menu actions.
|
|
99 |
*/
|
|
100 |
virtual void releaseMenu();
|
|
101 |
|
|
102 |
/*!
|
|
103 |
\fn void release()
|
|
104 |
|
|
105 |
Releases plugin. Method is called when menu plugin is not needed
|
|
106 |
anymore and interface can release all resources.
|
|
107 |
*/
|
|
108 |
virtual void release();
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
};
|
|
113 |
|
|
114 |
#endif /* MENUEXTENSION_STUB_H_ */
|