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

KNewStuff

  • knewstuff
  • knewstuff2
  • ui
kdxsbutton.h
Go to the documentation of this file.
1/*
2 This file is part of KNewStuff2.
3 Copyright (c) 2005 - 2007 Josef Spillner <spillner@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef KNEWSTUFF2_UI_KDXSBUTTON_H
20#define KNEWSTUFF2_UI_KDXSBUTTON_H
21
22#include <QtGui/QToolButton>
23#include "knewstuff2/core/entry.h"
24class KMenu;
25class QAction;
26class KUrl;
27
28namespace KNS
29{
30
31class Dxs;
32class Entry;
33class Provider;
34class DxsEngine;
35class Category;
36class Feed;
49class KDXSButton : public QToolButton
50{
51 Q_OBJECT
52public:
53 KDXSButton(QWidget *parent);
54 ~KDXSButton();
55
56 void setEntry(KNS::Entry *e);
57 void setProvider(const KNS::Provider *provider);
58 void setEngine(KNS::DxsEngine *engine);
59
60public Q_SLOTS:
61 void slotTriggered(QAction *action);
62 void slotVersionsActivated(int id);
63 void slotVersionsHighlighted(int id);
64 void slotClicked();
65
66 void slotInfo(QString provider, QString server, QString version);
67 void slotCategories(QList<KNS::Category*> categories);
68 void slotEntries(QList<KNS::Entry*> entries);
69 void slotComments(QStringList comments);
70 void slotHistory(QStringList entries);
71 void slotChanges(QStringList entries);
72 void slotRemoval(bool success);
73 void slotSubscription(bool success);
74 void slotComment(bool success);
75 void slotRating(bool success);
76
77 void slotFault();
78 void slotError();
79
80 void slotPayloadLoaded(KUrl url);
81 void slotPayloadFailed(KNS::Entry *);
82
83private:
84 bool authenticate();
85
86 // FIXME KDE4PORT item actions
87 /*QAction *Items
88 {
89 install,
90 uninstall,
91 comments,
92 changes,
93 info,
94
95 historysub,
96
97 collabrating,
98 collabcomment,
99 collaboratesub,
100 collabsubscribe,
101 collabremoval,
102 collabtranslation,
103
104 contactsub,
105 contactbymail,
106 contactbyjabber
107 };*/
108
109 QAction *action_install;
110 QAction *action_uninstall;
111 QAction *action_comments;
112 QAction *action_changes;
113 QAction *action_info;
114
115 QAction *action_historysub;
116
117 QAction *action_collabrating;
118 QAction *action_collabcomment;
119 QAction *action_collaboratesub;
120 QAction *action_collabsubscribe;
121 QAction *action_collabremoval;
122 QAction *action_collabtranslation;
123
124 QAction *action_contactsub;
125 QAction *action_contactbymail;
126 QAction *action_contactbyjabber;
127
128 enum States {
129 historyinactive,
130 historydisabled,
131 historyslots
132 };
133
134 KNS::Dxs *m_dxs;
135 KMenu *m_p, *m_history, *m_contact;
136
137 KNS::Entry *m_entry;
138 const KNS::Provider *m_provider;
139 KNS::DxsEngine *m_engine;
140
141 QString m_username;
142 QString m_password;
143
144 class Private;
145 Private * const d;
146
147 QWidget * m_parent;
148};
149
150}
151
152#endif
KMenu
KNS::DxsEngine
KNewStuff DXS engine.
Definition: dxsengine.h:40
KNS::Dxs
KNewStuff DXS proxy.
Definition: dxs.h:49
KNS::Entry
KNewStuff data entry container.
Definition: knewstuff2/core/entry.h:47
KNS::KDXSButton
KNewStuff DXS interaction button.
Definition: kdxsbutton.h:50
KNS::KDXSButton::slotClicked
void slotClicked()
Definition: kdxsbutton.cpp:503
KNS::KDXSButton::slotVersionsHighlighted
void slotVersionsHighlighted(int id)
Definition: kdxsbutton.cpp:489
KNS::KDXSButton::setEngine
void setEngine(KNS::DxsEngine *engine)
Definition: kdxsbutton.cpp:200
KNS::KDXSButton::slotVersionsActivated
void slotVersionsActivated(int id)
Definition: kdxsbutton.cpp:390
KNS::KDXSButton::slotError
void slotError()
Definition: kdxsbutton.cpp:383
KNS::KDXSButton::slotPayloadFailed
void slotPayloadFailed(KNS::Entry *)
Definition: kdxsbutton.cpp:546
KNS::KDXSButton::slotRating
void slotRating(bool success)
Definition: kdxsbutton.cpp:350
KNS::KDXSButton::~KDXSButton
~KDXSButton()
Definition: kdxsbutton.cpp:120
KNS::KDXSButton::slotInfo
void slotInfo(QString provider, QString server, QString version)
Definition: kdxsbutton.cpp:250
KNS::KDXSButton::slotChanges
void slotChanges(QStringList entries)
Definition: kdxsbutton.cpp:289
KNS::KDXSButton::setProvider
void setProvider(const KNS::Provider *provider)
Definition: kdxsbutton.cpp:166
KNS::KDXSButton::slotHistory
void slotHistory(QStringList entries)
Definition: kdxsbutton.cpp:301
KNS::KDXSButton::slotEntries
void slotEntries(QList< KNS::Entry * > entries)
Definition: kdxsbutton.cpp:269
KNS::KDXSButton::slotTriggered
void slotTriggered(QAction *action)
Definition: kdxsbutton.cpp:398
KNS::KDXSButton::slotSubscription
void slotSubscription(bool success)
Definition: kdxsbutton.cpp:337
KNS::KDXSButton::slotPayloadLoaded
void slotPayloadLoaded(KUrl url)
Definition: kdxsbutton.cpp:528
KNS::KDXSButton::setEntry
void setEntry(KNS::Entry *e)
Definition: kdxsbutton.cpp:124
KNS::KDXSButton::slotComment
void slotComment(bool success)
Definition: kdxsbutton.cpp:363
KNS::KDXSButton::slotComments
void slotComments(QStringList comments)
Definition: kdxsbutton.cpp:277
KNS::KDXSButton::slotFault
void slotFault()
Definition: kdxsbutton.cpp:376
KNS::KDXSButton::slotCategories
void slotCategories(QList< KNS::Category * > categories)
Definition: kdxsbutton.cpp:261
KNS::KDXSButton::slotRemoval
void slotRemoval(bool success)
Definition: kdxsbutton.cpp:324
KNS::Provider
KNewStuff provider container.
Definition: knewstuff2/core/provider.h:52
KUrl
QAction
QList
QToolButton
QWidget
entry.h
KNS
Definition: knewstuff2/core/author.h:27
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