ktemperature.kdevelop: kde-apps/ktemperature/src/ktemperaturewidget.h Source File

Main Page | Class List | File List | Class Members

# kde-apps/ktemperature/src/ktemperaturewidget.h

    00001 /***************************************************************************
    00002  *   Copyright (C) 2005 by Silpa & Kamesh                                  *
    00003  *   us@avasarala                                                          *
    00004  *                                                                         *
    00005  *   This program is free software; you can redistribute it and/or modify  *
    00006  *   it under the terms of the GNU General Public License as published by  *
    00007  *   the Free Software Foundation; either version 2 of the License, or     *
    00008  *   (at your option) any later version.                                   *
    00009  *                                                                         *
    00010  *   This program is distributed in the hope that it will be useful,       *
    00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
    00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
    00013  *   GNU General Public License for more details.                          *
    00014  *                                                                         *
    00015  *   You should have received a copy of the GNU General Public License     *
    00016  *   along with this program; if not, write to the                         *
    00017  *   Free Software Foundation, Inc.,                                       *
    00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
    00019  ***************************************************************************/
    00020
    00021
    00022 #ifndef _KTEMPERATUREWIDGET_H_
    00023 #define _KTEMPERATUREWIDGET_H_
    00024
    00025 #include "ktemperaturewidgetbase.h"
    00026 #include <knuminput.h>
    00027 #include <ksystemtray.h>
    00028 #include <qfile.h>
    00029 #include <qtimer.h>
    00030
    00031 class KTemperatureWidget : public KTemperatureWidgetBase
    00032 {
    00033     Q_OBJECT
    00034
    00035 public:
    00036     KTemperatureWidget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    00037     ~KTemperatureWidget();
    00038     void setTrayReference(KSystemTray* systemTrayObject);
    00039     /*$PUBLIC_FUNCTIONS$*/
    00040
    00041 public slots:
    00042     /*$PUBLIC_SLOTS$*/
    00043     virtual void setButton_clicked();
    00044     virtual void cancelButton_clicked();
    00045     void checkTemperature();
    00046     virtual void monitorInterfaceSelect_urlSelected(const QString& selectedInterface);
    00047
    00048
    00049
    00050 protected:
    00051     /*$PROTECTED_FUNCTIONS$*/
    00052
    00053 protected slots:
    00054     /*$PROTECTED_SLOTS$*/
    00055
    00056 private:
    00057     //QWidget* parent;
    00058     int pollIntreval;
    00059     int maxSysTemperature;
    00060     KSystemTray* trayObject;
    00061     //FILE* temperatureFile;
    00062     QTimer * pollTimer;
    00063     char monitorInterface[512];
    00064     char configFile[512];
    00065 };
    00066
    00067 #endif
    00068