summaryrefslogtreecommitdiffstats
path: root/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.h
blob: 0d41682e192f24736374b242fdd810e8feaafbf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * kntsrcfilepropsdlg.h
 *
 * Copyright (c) 2001 Frerich Raabe <raabe@kde.org>
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
 * accompanying file 'COPYING'.
 */
#ifndef KNTSRCFILEPROPSDLG_H
#define KNTSRCFILEPROPSDLG_H

#include <global.h>

#include <klibloader.h>
#include <kpropertiesdialog.h>

class KntSrcFilePropsDlgWidget;
class QListBoxItem;

namespace RSS {
	class Loader;
	class Document;
}

using RSS::Loader;
using RSS::Document;
using RSS::Status;

class KntSrcFilePropsFactory : public KLibFactory
{
	Q_OBJECT
	
	public:
		virtual TQObject *createObject(TQObject * = 0, const char * = 0,
				const char * = "TQObject", const TQStringList & = TQStringList());
};

class KntSrcFilePropsDlg : public KPropsDlgPlugin
{
	Q_OBJECT
	
	public:
		KntSrcFilePropsDlg(KPropertiesDialog *);
	
	protected slots:
		void slotOpenURL(const TQString &);
		void slotConstructUI(Loader *loader, Document doc, Status status);
		void slotGotIcon(const KURL &, const TQPixmap &);
		void slotClickedArticle(TQListBoxItem *);
	
	private:
		KntSrcFilePropsDlgWidget *m_child;
};

#endif // KNTSRCFILEPROPSDLG_H