1 #ifndef __konq_events_h__
2 #define __konq_events_h__
4 #include <tdeparts/event.h>
6 #include <libkonq_export.h>
15 typedef TQPtrList<KFileItem> KFileItemList;
17 class LIBKONQ_EXPORT KonqFileSelectionEvent :
public KParts::Event
20 KonqFileSelectionEvent(
const KFileItemList &selection, KParts::ReadOnlyPart *part ) : KParts::Event( s_fileItemSelectionEventName ), m_selection( selection ), m_part( part ) {}
22 KFileItemList selection()
const {
return m_selection; }
23 KParts::ReadOnlyPart *part()
const {
return m_part; }
25 static bool test(
const TQEvent *event ) {
return KParts::Event::test( event, s_fileItemSelectionEventName ); }
28 static const char *s_fileItemSelectionEventName;
30 KFileItemList m_selection;
31 KParts::ReadOnlyPart *m_part;
34 class LIBKONQ_EXPORT KonqFileMouseOverEvent :
public KParts::Event
37 KonqFileMouseOverEvent(
const KFileItem *item, KParts::ReadOnlyPart *part ) : KParts::Event( s_fileItemMouseOverEventName ), m_item( item ), m_part( part ) {}
39 const KFileItem* item()
const {
return m_item; }
40 KParts::ReadOnlyPart *part()
const {
return m_part; }
42 static bool test(
const TQEvent *event ) {
return KParts::Event::test( event, s_fileItemMouseOverEventName ); }
45 static const char *s_fileItemMouseOverEventName;
47 const KFileItem* m_item;
48 KParts::ReadOnlyPart *m_part;
51 class LIBKONQ_EXPORT KonqConfigEvent :
public KParts::Event
54 KonqConfigEvent( TDEConfig *config,
const TQString &prefix,
bool save ) : KParts::Event( s_configEventName ), m_config( config ), m_prefix( prefix ), m_save( save ) {}
56 TDEConfig * config()
const {
return m_config; }
57 TQString prefix()
const {
return m_prefix; }
58 bool save()
const {
return m_save; }
60 static bool test(
const TQEvent *event ) {
return KParts::Event::test( event, s_configEventName ); }
63 static const char *s_configEventName;