• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kmilo

generic_monitor.h

Go to the documentation of this file.
00001 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 2; -*-
00002 /*
00003    This file is part of the KDE project
00004 
00005    Copyright (c) 2003 Willi Richert <w.richert@gmx.net>
00006      Pretty much ripped of from :
00007      George Staikos <staikos@kde.org> :)
00008 
00009    This library is free software; you can redistribute it and/or
00010    modify it under the terms of the GNU Library General Public
00011    License as published by the Free Software Foundation; either
00012    version 2 of the License, or (at your option) any later version.
00013 
00014    This library is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017    Library General Public License for more details.
00018 
00019    You should have received a copy of the GNU Library General Public License
00020    along with this library; see the file COPYING.LIB.  If not, write to
00021    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00022    Boston, MA 02110-1301, USA.
00023 
00024 */
00025 #ifndef _GENERICMONITOR_H_
00026 #define _GENERICMONITOR_H_
00027 
00028 #include <kxmlguiwindow.h>
00029 #include <kglobalaccel.h>
00030 #include <kapplication.h>
00031 
00032 #include "kmilod.h"
00033 #include "monitor.h"
00034 
00035 namespace KMilo {
00036 
00037 // now the key data (from kkeyserver_x11.h and $QTDIR/include/qnamespace.h)
00038 struct ShortcutInfo
00039 {
00040     const char* name;
00041     uint symbol;
00042     const char *slot;
00043 };
00044 
00045 
00046 class GenericMonitor : public Monitor
00047 {
00048     Q_OBJECT
00049 
00050 public:
00051     GenericMonitor(QObject *parent, const QStringList&);
00052     virtual ~GenericMonitor();
00053 
00054     virtual bool init();
00055     virtual int progress() const;
00056     virtual DisplayType poll();
00057 
00058 public slots:
00059   void slowVolumeUp();
00060   void slowVolumeDown();
00061   void fastVolumeUp();
00062   void fastVolumeDown();
00063   void mute();
00064 
00065 private:
00066   void volumeUp(int step);
00067   void volumeDown(int step);
00068     bool retrieveMute();
00069     bool retrieveVolume();
00070     void displayVolume();
00071 
00072     //DCOPRef *kmixClient, *kmixWindow;
00073 
00074     int m_progress;
00075     long m_volume, m_oldVolume;
00076     bool m_mute;
00077 
00078     long m_maxVolume, m_minVolume;
00079 
00080     Monitor::DisplayType m_displayType;
00081 };
00082 
00083 }
00084 
00085 #endif

kmilo

Skip menu "kmilo"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal