• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

libkonq

  • sources
  • kde-4.12
  • applications
  • kde-baseapps
  • lib
  • konq
konq_events.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2000 Simon Hausmann <hausmann@kde.org>
3  Copyright (C) 2000-2007 David Faure <faure@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 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  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __konq_events_h__
22 #define __konq_events_h__
23 
24 #include <kparts/event.h>
25 #include <QtCore/QList>
26 #include <libkonq_export.h>
27 #include <kfileitem.h>
28 #include <kconfigbase.h>
29 
30 namespace KParts
31 {
32  class ReadOnlyPart;
33 }
34 
35 class KConfig;
36 
37 class LIBKONQ_EXPORT KonqFileSelectionEvent : public KParts::Event
38 {
39 public:
40  KonqFileSelectionEvent( const KFileItemList&selection, KParts::ReadOnlyPart *part ) : KParts::Event( s_fileItemSelectionEventName ), m_selection( selection ), m_part( part ) {}
41 
42  KFileItemList selection() const { return m_selection; }
43  KParts::ReadOnlyPart *part() const { return m_part; }
44 
45  static bool test( const QEvent *event ) { return KParts::Event::test( event, s_fileItemSelectionEventName ); }
46 
47 private:
48  static const char * const s_fileItemSelectionEventName;
49 
50  KFileItemList m_selection;
51  KParts::ReadOnlyPart *m_part;
52 };
53 
54 class LIBKONQ_EXPORT KonqFileMouseOverEvent : public KParts::Event
55 {
56 public:
57  KonqFileMouseOverEvent( const KFileItem& item, KParts::ReadOnlyPart *part ) : KParts::Event( s_fileItemMouseOverEventName ), m_item( item ), m_part( part ) {}
58 
59  const KFileItem& item() const { return m_item; }
60  KParts::ReadOnlyPart *part() const { return m_part; }
61 
62  static bool test( const QEvent *event ) { return KParts::Event::test( event, s_fileItemMouseOverEventName ); }
63 
64 private:
65  static const char * const s_fileItemMouseOverEventName;
66 
67  KFileItem m_item;
68  KParts::ReadOnlyPart *m_part;
69 };
70 
71 class LIBKONQ_EXPORT KonqConfigEvent : public KParts::Event
72 {
73 public:
74  KonqConfigEvent( KConfigBase *config, const QString &prefix, bool save ) : KParts::Event( s_configEventName ), m_config( config ), m_prefix( prefix ), m_save( save ) {}
75 
76  KConfigBase * config() const { return m_config; }
77  QString prefix() const { return m_prefix; }
78  bool save() const { return m_save; }
79 
80  static bool test( const QEvent *event ) { return KParts::Event::test( event, s_configEventName ); }
81 private:
82  static const char * const s_configEventName;
83 
84  KConfigBase *m_config;
85  QString m_prefix;
86  bool m_save;
87 };
88 
89 #endif
KonqConfigEvent::prefix
QString prefix() const
Definition: konq_events.h:77
KonqConfigEvent::config
KConfigBase * config() const
Definition: konq_events.h:76
KonqFileMouseOverEvent::KonqFileMouseOverEvent
KonqFileMouseOverEvent(const KFileItem &item, KParts::ReadOnlyPart *part)
Definition: konq_events.h:57
KonqConfigEvent
Definition: konq_events.h:71
KonqFileMouseOverEvent
Definition: konq_events.h:54
KonqFileSelectionEvent::test
static bool test(const QEvent *event)
Definition: konq_events.h:45
KonqConfigEvent::test
static bool test(const QEvent *event)
Definition: konq_events.h:80
KonqFileSelectionEvent
Definition: konq_events.h:37
KonqFileSelectionEvent::selection
KFileItemList selection() const
Definition: konq_events.h:42
KonqConfigEvent::KonqConfigEvent
KonqConfigEvent(KConfigBase *config, const QString &prefix, bool save)
Definition: konq_events.h:74
KonqFileSelectionEvent::KonqFileSelectionEvent
KonqFileSelectionEvent(const KFileItemList &selection, KParts::ReadOnlyPart *part)
Definition: konq_events.h:40
KonqConfigEvent::save
bool save() const
Definition: konq_events.h:78
libkonq_export.h
KonqFileMouseOverEvent::part
KParts::ReadOnlyPart * part() const
Definition: konq_events.h:60
LIBKONQ_EXPORT
#define LIBKONQ_EXPORT
Definition: libkonq_export.h:36
KonqFileMouseOverEvent::test
static bool test(const QEvent *event)
Definition: konq_events.h:62
KonqFileMouseOverEvent::item
const KFileItem & item() const
Definition: konq_events.h:59
KonqFileSelectionEvent::part
KParts::ReadOnlyPart * part() const
Definition: konq_events.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkonq

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



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