userinfo.h
Go to the documentation of this file.00001
00014 #ifndef USERINFO_H
00015 #define USERINFO_H
00016
00017 #include <qwidget.h>
00018 #include <qlistview.h>
00019 #include <qdict.h>
00020 #include "poplistview.h"
00021
00024 class UserInfoListViewItem : public ColorListViewItem
00025 {
00026 public:
00031 UserInfoListViewItem(QListView* parent) : ColorListViewItem(parent) {}
00033 ~UserInfoListViewItem() {}
00041 virtual QString key(int column, bool ascending) const;
00042 };
00043
00049 class UserInfo : public QWidget
00050 {
00051 Q_OBJECT
00052
00053 public:
00060 UserInfo(QWidget *parent=0, const char *name=0);
00062 ~UserInfo();
00063
00064 public slots:
00070 void refreshList();
00080 void slotUpdateList(SetiLoc* loc, int type);
00081
00082 protected:
00090 void resizeEvent(QResizeEvent* e);
00095 void paintEvent(QPaintEvent* e);
00102 void refreshListItem(SetiLoc* loc, UserInfoListViewItem* it=0);
00103
00104 protected slots:
00108 void slotUpdateUserInfoData();
00110 void toggleSorting(int column);
00111
00112 protected:
00114 popListView* QListView_1;
00118 QDict<UserInfoListViewItem> lvDict;
00119 bool sortingorder;
00121 enum ColumnIds {ColLocation, ColName, ColWuCompl, ColTotalTime,
00122 ColAvrgTime, ColLastResult, ColRegTime};
00123 };
00124
00125 #endif
00126
00127
00128
00129
00130
This file is part of the documentation for Ksetiwatch API Version 2.6.1.