~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to kde/src/actioncollection.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2009-2014 by Savoir-Faire Linux                         *
 
3
 *   Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
 
4
 *                                                                         *
 
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.                                   *
 
9
 *                                                                         *
 
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.                          *
 
14
 *                                                                         *
 
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
 
20
 
 
21
#include <QtCore/QObject>
 
22
 
 
23
//Qt
 
24
class QActionGroup;
 
25
 
 
26
//KDE
 
27
class KAction;
 
28
 
 
29
//SFLPhonw
 
30
class AccountWizard;
 
31
class ExtendedAction;
 
32
 
 
33
///Group action declaration under the same umbrella
 
34
class ActionCollection : public QObject {
 
35
   Q_OBJECT
 
36
public:
 
37
 
 
38
   //Constructor
 
39
   explicit ActionCollection(QObject* parent = nullptr);
 
40
   virtual ~ActionCollection();
 
41
   static ActionCollection* instance();
 
42
   void setupAction();
 
43
 
 
44
   //Actions
 
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                 ();
 
64
 
 
65
   //Video actions
 
66
   #ifdef ENABLE_VIDEO
 
67
   ExtendedAction* videoRotateLeftAction     ();
 
68
   ExtendedAction* videoRotateRightAction    ();
 
69
   ExtendedAction* videoFlipHorizontalAction ();
 
70
   ExtendedAction* videoFlipVerticalAction   ();
 
71
   ExtendedAction* videoMuteAction           ();
 
72
   ExtendedAction* videoPreviewAction        ();
 
73
   #endif
 
74
 
 
75
private:
 
76
 
 
77
   //Toolbar actions
 
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   ;
 
88
 
 
89
   //Video actions
 
90
   #ifdef ENABLE_VIDEO
 
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        ;
 
97
   #endif
 
98
 
 
99
   //Other actions
 
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           ;
 
116
 
 
117
   AccountWizard*       m_pWizard        ;
 
118
 
 
119
   //Singleton
 
120
   static ActionCollection* m_spInstance;
 
121
 
 
122
 
 
123
private Q_SLOTS:
 
124
   void accept   ();
 
125
   void hangup   ();
 
126
   void refuse   ();
 
127
   void hold     ();
 
128
   void unhold   ();
 
129
   void transfer ();
 
130
   void record   ();
 
131
   void mailBox  ();
 
132
   void configureSflPhone     ();
 
133
   void showShortCutEditor    ();
 
134
   void accountCreationWizard ();
 
135
   void editToolBar           ();
 
136
   void addMacro              ( KAction* newAction );
 
137
   void slotAddContact();
 
138
   void updateRecordButton   ();
 
139
   void updateVolumeButton   ();
 
140
 
 
141
Q_SIGNALS:
 
142
   void windowStateChanged();
 
143
};
 
144
 
 
145
#endif