Add install target, so "make install" works
[skype-call-recorder.git] / recorder.h
bloba907be1fdcee895111a1881144ca378419dc8bf9
1 /*
2 Skype Call Recorder
3 Copyright (C) 2008 jlh (jlh at gmx dot ch)
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2 of the License, version 3 of
8 the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 The GNU General Public License version 2 is included with the source of
20 this program under the file name COPYING. You can also get a copy on
21 http://www.fsf.org/
24 #ifndef RECORDER_H
25 #define RECORDER_H
27 #include <QApplication>
28 #include <QStringList>
29 #include <QPointer>
31 class TrayIcon;
32 class QTextEdit;
33 class QString;
34 class PreferencesDialog;
35 class Skype;
36 class CallHandler;
37 class AboutDialog;
39 class Recorder : public QApplication {
40 Q_OBJECT
41 public:
42 Recorder(int, char **);
43 virtual ~Recorder();
45 void debugMessage(const QString &);
47 public slots:
48 void about();
49 void openPreferences();
50 void closePreferences();
51 void browseCalls();
52 void quitConfirmation();
53 void skypeNotify(const QString &);
54 void skypeConnected(bool);
55 void skypeConnectionFailed(const QString &);
56 void savePreferences();
58 private:
59 void loadPreferences();
60 void setupGUI();
61 void setupSkype();
62 void setupCallHandler();
64 QString getConfigFile() const;
66 private:
67 Skype *skype;
68 CallHandler *callHandler;
69 PreferencesDialog *preferencesDialog;
70 TrayIcon *trayIcon;
71 QPointer<AboutDialog> aboutDialog;
73 private:
74 // disabled
75 Recorder(const Recorder &);
76 Recorder &operator=(const Recorder &);
79 #endif