~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to kmix/apps/kmixd.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * KMix -- KDE's full featured mini mixer
 
3
 *
 
4
 * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Library General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Library General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Library General Public
 
17
 * License along with this program; if not, write to the Free
 
18
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
 */
 
20
 
 
21
#ifndef KMIXD_H
 
22
#define KMIXD_H
 
23
 
 
24
 
 
25
#include <config.h>
 
26
 
 
27
// Qt
 
28
#include <QString>
 
29
#include <QtDBus/QtDBus> 
 
30
 
 
31
#include <qlist.h>
 
32
#include <QTimer>
 
33
 
 
34
// KDE
 
35
//class KAccel;
 
36
class KAction;
 
37
//#include <kxmlguiwindow.h>
 
38
#include <kdedmodule.h> 
 
39
        
 
40
// KMix
 
41
//class KMixPrefDlg;
 
42
//class KMixDockWidget;
 
43
//class KMixWindow;
 
44
//class ViewDockAreaPopup;
 
45
#include "core/mixer.h"
 
46
 
 
47
//class OSDWidget;
 
48
 
 
49
class
 
50
KMixD : public KDEDModule, protected QDBusContext
 
51
{
 
52
  Q_OBJECT
 
53
  Q_CLASSINFO("D-Bus Interface", "org.kde.KMixD")
 
54
 
 
55
  public:
 
56
   KMixD(QObject* parent, const QList<QVariant>&);
 
57
   ~KMixD();
 
58
 
 
59
  private:
 
60
   void saveBaseConfig();
 
61
   void loadConfig();
 
62
   void loadBaseConfig();
 
63
 
 
64
   void initActions();
 
65
   void initActionsLate();
 
66
 
 
67
   void fixConfigAfterRead();
 
68
 
 
69
  public slots:
 
70
   //void loadVolumes();
 
71
   void saveVolumes();
 
72
   //virtual void applyPrefs( KMixPrefDlg *prefDlg );
 
73
 
 
74
  private:
 
75
   //KAccel *m_keyAccel;
 
76
   //KAction* _actionShowMenubar;
 
77
 
 
78
   bool m_onLogin;
 
79
   bool m_multiDriverMode;         // Not officially supported.
 
80
   bool m_autouseMultimediaKeys;   // Due to message freeze, not in config dialog in KDE4.4
 
81
 
 
82
   QString m_hwInfoString;
 
83
   QString m_defaultCardOnStart;
 
84
   bool m_dontSetDefaultCardOnStart;
 
85
   unsigned int m_configVersion;
 
86
   //void increaseOrDecreaseVolume(bool increase);
 
87
 
 
88
  private slots:
 
89
   void saveConfig();
 
90
   //void slotHWInfo();
 
91
   void plugged( const char* driverName, const QString& udi, QString& dev);
 
92
   void unplugged( const QString& udi);
 
93
   //void slotIncreaseVolume();
 
94
   //void slotDecreaseVolume();
 
95
   //void slotMute();
 
96
};
 
97
 
 
98
#endif // KMIXD_H