• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KNewStuff

  • knewstuff
  • knewstuff3
  • ui
entrydetailsdialog.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2009 Frederik Gladhorn <gladhorn@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef KNEWSTUFF3_UI_ENTRYDETAILS_H
19#define KNEWSTUFF3_UI_ENTRYDETAILS_H
20
21#include <QtCore/QObject>
22#include <knewstuff3/core/entryinternal.h>
23
24#include "ui_downloadwidget.h"
25
26class QListWidgetItem;
27
28namespace KNS3
29{
30 class Engine;
31
32class EntryDetails :public QObject
33{
34 Q_OBJECT
35
36public:
37 EntryDetails(Engine* engine, Ui::DownloadWidget* widget);
38 ~EntryDetails();
39
40public Q_SLOTS:
41 void setEntry(const KNS3::EntryInternal& entry);
42
43private Q_SLOTS:
44 void slotEntryPreviewLoaded(const KNS3::EntryInternal& entry, KNS3::EntryInternal::PreviewType type);
45 void install();
46 void uninstall();
47
48 void ratingChanged(uint rating);
49 void becomeFan();
50 // more details loaded
51 void entryChanged(const KNS3::EntryInternal& entry);
52 // installed/updateable etc
53 void entryStatusChanged(const KNS3::EntryInternal& entry);
54 void updateButtons();
55
56 void preview1Selected();
57 void preview2Selected();
58 void preview3Selected();
59
60private:
61 void init();
62 void previewSelected(int current);
63
64 Engine *m_engine;
65 Ui::DownloadWidget* ui;
66 EntryInternal m_entry;
67 QImage m_currentPreview;
68 QListWidgetItem* m_previewItem1;
69 QListWidgetItem* m_previewItem2;
70 QListWidgetItem* m_previewItem3;
71};
72
73}
74
75#endif
KNS3::Engine
KNewStuff engine.
Definition: knewstuff3/core/engine.h:53
KNS3::EntryDetails
Definition: entrydetailsdialog.h:33
KNS3::EntryDetails::setEntry
void setEntry(const KNS3::EntryInternal &entry)
Definition: entrydetailsdialog.cpp:67
KNS3::EntryDetails::~EntryDetails
~EntryDetails()
Definition: entrydetailsdialog.cpp:35
KNS3::EntryInternal
KNewStuff data entry container.
Definition: entryinternal.h:55
KNS3::EntryInternal::PreviewType
PreviewType
Definition: entryinternal.h:70
QObject
entryinternal.h
KNS3
Definition: atticaprovider.cpp:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal