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

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • core
bookmarkable.h
Go to the documentation of this file.
1 /*
2  This file is part of the Okteta Core library, made within the KDE community.
3 
4  Copyright 2007,2009 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef OKTETA_BOOKMARKABLE_H
24 #define OKTETA_BOOKMARKABLE_H
25 
26 // Qt
27 #include <QtCore/QtPlugin>
28 
29 template <class T> class QList;
30 
31 
32 namespace Okteta
33 {
34 
35 class BookmarksConstIterator;
36 class Bookmark;
37 // interface to a list of bookmarks, sorted by the offset
38 //
39 class Bookmarkable
40 {
41  public:
42  virtual ~Bookmarkable();
43 
44  public: // set/action
45  virtual void addBookmarks( const QList<Okteta::Bookmark> &bookmarks ) = 0;
46  virtual void removeBookmarks( const QList<Okteta::Bookmark> &bookmarks ) = 0;
47  virtual void removeAllBookmarks() = 0;
48  virtual void setBookmark( unsigned int index, const Okteta::Bookmark& bookmark ) = 0;
49 
50  public: // get
51  virtual Okteta::BookmarksConstIterator createBookmarksConstIterator() const = 0;
52 // virtual BookmarksMutableIterator createBookmarksMutableIterator() const = 0;
53  virtual const Okteta::Bookmark& bookmarkAt( unsigned int index ) const = 0;
54  virtual const Okteta::Bookmark& bookmarkFor( int offset ) const = 0;
55  virtual bool containsBookmarkFor( int offset ) const = 0;
56  virtual unsigned int bookmarksCount() const = 0;
57 
58  public: // signal
59  // TODO: use also QList<int> for added?
60  virtual void bookmarksAdded( const QList<Okteta::Bookmark> &bookmarks ) = 0;
61  virtual void bookmarksRemoved( const QList<Okteta::Bookmark> &bookmarks ) = 0;
62  virtual void bookmarksModified( const QList<int>& indizes ) = 0;
63  virtual void bookmarksModified( bool modified ) = 0;
64 };
65 
66 inline Bookmarkable::~Bookmarkable() {}
67 
68 }
69 
70 Q_DECLARE_INTERFACE( Okteta::Bookmarkable, "org.kde.khecore.bookmarkable/1.0" )
71 
72 #endif
Okteta::Bookmarkable::bookmarksModified
virtual void bookmarksModified(const QList< int > &indizes)=0
Okteta::Bookmark
Definition: bookmark.h:38
Okteta::Bookmarkable::addBookmarks
virtual void addBookmarks(const QList< Okteta::Bookmark > &bookmarks)=0
Okteta::Bookmarkable
Definition: bookmarkable.h:39
Okteta::Bookmarkable::createBookmarksConstIterator
virtual Okteta::BookmarksConstIterator createBookmarksConstIterator() const =0
Okteta::BookmarksConstIterator
Definition: bookmarksconstiterator.h:36
Okteta::Bookmarkable::bookmarkFor
virtual const Okteta::Bookmark & bookmarkFor(int offset) const =0
Okteta::Bookmarkable::removeBookmarks
virtual void removeBookmarks(const QList< Okteta::Bookmark > &bookmarks)=0
Okteta::Bookmarkable::removeAllBookmarks
virtual void removeAllBookmarks()=0
Okteta::Bookmarkable::bookmarksRemoved
virtual void bookmarksRemoved(const QList< Okteta::Bookmark > &bookmarks)=0
Okteta::Bookmarkable::bookmarkAt
virtual const Okteta::Bookmark & bookmarkAt(unsigned int index) const =0
Okteta::Bookmarkable::~Bookmarkable
virtual ~Bookmarkable()
Definition: bookmarkable.h:66
Okteta::Bookmarkable::bookmarksCount
virtual unsigned int bookmarksCount() const =0
Okteta::Bookmarkable::bookmarksAdded
virtual void bookmarksAdded(const QList< Okteta::Bookmark > &bookmarks)=0
Okteta::Bookmarkable::setBookmark
virtual void setBookmark(unsigned int index, const Okteta::Bookmark &bookmark)=0
Okteta::Bookmarkable::containsBookmarkFor
virtual bool containsBookmarkFor(int offset) const =0
QList
Definition: bookmarkable.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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