ktimetracker
karm_part.h
Go to the documentation of this file.00001 /* 00002 * Copyright (C) 2005 by Thorsten Staerk <kde@staerk.de> 00003 * 2007 the ktimetracker developers 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 along 00016 * with this program; if not, write to the 00017 * Free Software Foundation, Inc. 00018 * 51 Franklin Street, Fifth Floor 00019 * Boston, MA 02110-1301 USA. 00020 * 00021 */ 00022 00023 #ifndef _KARMPART_H_ 00024 #define _KARMPART_H_ 00025 00026 #include <kparts/part.h> 00027 #include "karmerrors.h" 00028 #include <kparts/factory.h> 00029 #include "reportcriteria.h" 00030 00031 class TrayIcon; 00032 class QWidget; 00033 class TimetrackerWidget; 00034 00043 class karmPart : public KParts::ReadWritePart 00044 { 00045 Q_OBJECT 00046 00047 private: 00048 void makeMenus(); 00049 TrayIcon *mTray; 00050 TimetrackerWidget *mMainWidget; 00051 00052 00053 friend class TrayIcon; 00054 00055 public: 00056 karmPart(QWidget *parentWidget, QObject *parent, const QVariantList&); 00057 00058 void taskViewCustomContextMenuRequested( const QPoint& ); 00059 TimetrackerWidget* MainWidget() { return mMainWidget; }; 00060 00061 virtual ~karmPart(); 00062 static KAboutData *createAboutData(); 00063 protected: 00064 virtual bool saveFile(); 00065 virtual bool openFile(); 00066 00067 public Q_SLOTS: 00068 void setStatusBar(const QString & qs); 00069 00070 }; 00071 00072 #endif // _KARMPART_H_
KDE 4.2 API Reference