1
/***************************************************************************
2
* Copyright (C) 2009-2014 by Savoir-Faire Linux *
3
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
**************************************************************************/
18
#ifndef ACTIONCOLLECTION_H
19
#define ACTIONCOLLECTION_H
21
#include <QtCore/QObject>
33
///Group action declaration under the same umbrella
34
class ActionCollection : public QObject {
39
explicit ActionCollection(QObject* parent = nullptr);
40
virtual ~ActionCollection();
41
static ActionCollection* instance();
45
ExtendedAction* holdAction ();
46
ExtendedAction* recordAction ();
47
ExtendedAction* refuseAction ();
48
ExtendedAction* muteCaptureAction ();
49
ExtendedAction* mutePlaybackAction ();
50
ExtendedAction* hangupAction ();
51
ExtendedAction* unholdAction ();
52
ExtendedAction* transferAction();
53
ExtendedAction* pickupAction ();
54
ExtendedAction* acceptAction ();
55
KAction* displayVolumeControlsAction();
56
KAction* displayDialpadAction ();
57
KAction* displayMessageBoxAction ();
58
KAction* mailBoxAction ();
59
KAction* showContactDockAction ();
60
KAction* showHistoryDockAction ();
61
KAction* showBookmarkDockAction ();
62
KAction* quitAction ();
63
KAction* addContact ();
67
ExtendedAction* videoRotateLeftAction ();
68
ExtendedAction* videoRotateRightAction ();
69
ExtendedAction* videoFlipHorizontalAction ();
70
ExtendedAction* videoFlipVerticalAction ();
71
ExtendedAction* videoMuteAction ();
72
ExtendedAction* videoPreviewAction ();
78
ExtendedAction* action_accept ;
79
ExtendedAction* action_refuse ;
80
ExtendedAction* action_hold ;
81
ExtendedAction* action_transfer ;
82
ExtendedAction* action_record ;
83
ExtendedAction* action_mute_capture ;
84
ExtendedAction* action_mute_playback ;
85
ExtendedAction* action_hangup ;
86
ExtendedAction* action_unhold ;
87
ExtendedAction* action_pickup ;
91
ExtendedAction* action_video_rotate_left ;
92
ExtendedAction* action_video_rotate_right ;
93
ExtendedAction* action_video_flip_horizontal;
94
ExtendedAction* action_video_flip_vertical ;
95
ExtendedAction* action_video_mute ;
96
ExtendedAction* action_video_preview ;
100
KAction* action_mailBox ;
101
KAction* action_close ;
102
KAction* action_quit ;
103
KAction* action_displayVolumeControls ;
104
KAction* action_displayDialpad ;
105
KAction* action_displayMessageBox ;
106
KAction* action_configureSflPhone ;
107
KAction* action_configureShortcut ;
108
KAction* action_accountCreationWizard ;
109
KAction* action_pastenumber ;
110
KAction* action_showContactDock ;
111
KAction* action_showHistoryDock ;
112
KAction* action_showBookmarkDock ;
113
KAction* action_editToolBar ;
114
KAction* action_addContact ;
115
QActionGroup* action_screen ;
117
AccountWizard* m_pWizard ;
120
static ActionCollection* m_spInstance;
132
void configureSflPhone ();
133
void showShortCutEditor ();
134
void accountCreationWizard ();
136
void addMacro ( KAction* newAction );
137
void slotAddContact();
138
void updateRecordButton ();
139
void updateVolumeButton ();
142
void windowStateChanged();