KNewStuff
downloadwidget.h
Go to the documentation of this file.
00001 /* 00002 knewstuff3/ui/downloaddialog.h. 00003 Copyright (C) 2005 by Enrico Ros <eros.kde@email.it> 00004 Copyright (C) 2005 - 2007 Josef Spillner <spillner@kde.org> 00005 Copyright (C) 2007 Dirk Mueller <mueller@kde.org> 00006 Copyright (C) 2007-2009 Jeremy Whiting <jpwhiting@kde.org> 00007 Copyright (C) 2009-2010 Frederik Gladhorn <gladhorn@kde.org> 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Lesser General Public 00011 License as published by the Free Software Foundation; either 00012 version 2.1 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 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library. If not, see <http://www.gnu.org/licenses/>. 00021 */ 00022 00023 #ifndef KNEWSTUFF3_UI_DOWNLOADWIDGET_H 00024 #define KNEWSTUFF3_UI_DOWNLOADWIDGET_H 00025 00026 #include <QtGui/QWidget> 00027 00028 #include "knewstuff_export.h" 00029 #include "entry.h" 00030 00031 namespace KNS3 00032 { 00033 class DownloadWidgetPrivate; 00034 00072 class KNEWSTUFF_EXPORT DownloadWidget :public QWidget 00073 { 00074 Q_OBJECT 00075 00076 public: 00084 explicit DownloadWidget(QWidget * parent = 0); 00085 00094 explicit DownloadWidget(const QString& configFile, QWidget * parent = 0); 00095 00099 ~DownloadWidget(); 00100 00105 KNS3::Entry::List changedEntries(); 00106 00111 KNS3::Entry::List installedEntries(); 00112 00113 private: 00114 void init(const QString& configFile); 00115 00116 DownloadWidgetPrivate *const d; 00117 Q_DISABLE_COPY(DownloadWidget) 00118 00119 Q_PRIVATE_SLOT( d, void slotListViewListMode() ) 00120 Q_PRIVATE_SLOT( d, void slotListViewIconMode() ) 00121 00122 Q_PRIVATE_SLOT( d, void slotProvidersLoaded() ) 00123 Q_PRIVATE_SLOT( d, void slotEntriesLoaded(const KNS3::EntryInternal::List& entries) ) 00124 Q_PRIVATE_SLOT( d, void slotEntryChanged(const KNS3::EntryInternal& entry) ) 00125 Q_PRIVATE_SLOT( d, void slotShowDetails(const KNS3::EntryInternal& entry) ) 00126 Q_PRIVATE_SLOT( d, void slotShowOverview() ) 00127 00128 Q_PRIVATE_SLOT( d, void slotPayloadFailed(const EntryInternal& entry) ) 00129 Q_PRIVATE_SLOT( d, void slotPayloadLoaded(KUrl url) ) 00130 00131 Q_PRIVATE_SLOT( d, void slotResetMessage() ) 00132 Q_PRIVATE_SLOT( d, void slotNetworkTimeout() ) 00133 Q_PRIVATE_SLOT( d, void sortingChanged() ) 00134 Q_PRIVATE_SLOT( d, void slotSearchTextChanged() ) 00135 Q_PRIVATE_SLOT( d, void slotUpdateSearch() ) 00136 Q_PRIVATE_SLOT( d, void slotCategoryChanged(int) ) 00137 00138 Q_PRIVATE_SLOT( d, void slotInfo(QString provider, QString server, QString version) ) 00139 Q_PRIVATE_SLOT( d, void slotError(const QString& message) ) 00140 Q_PRIVATE_SLOT( d, void scrollbarValueChanged(int value) ) 00141 00142 friend class DownloadDialog; 00143 }; 00144 00145 } 00146 00147 #endif
KDE 4.6 API Reference