• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Applets

bookmarkitem.h

Go to the documentation of this file.
00001 /*  Copyright (C) 2008 Marco Martin <notmart@gmail.com>
00002 
00003     This library is free software; you can redistribute it and/or
00004     modify it under the terms of the GNU Library General Public
00005     License version 2 as published by the Free Software Foundation.
00006 
00007     This library is distributed in the hope that it will be useful,
00008     but WITHOUT ANY WARRANTY; without even the implied warranty of
00009     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00010     Library General Public License for more details.
00011 
00012     You should have received a copy of the GNU Library General Public License
00013     along with this library; see the file COPYING.LIB.  If not, write to
00014     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00015     Boston, MA 02110-1301, USA.
00016 
00017 */
00018 
00019 #ifndef BOOKMARKITEM_H
00020 #define BOOKMARKITEM_H
00021 
00022 
00023 #include <QStandardItem>
00024 #include <QtCore/QModelIndex>
00025 #include <kbookmark.h>
00026 
00027 
00028 class BookmarkItem : public QStandardItem
00029 {
00030 
00031 public:
00032     enum BookmarkRoles
00033     {
00034         UrlRole = Qt::UserRole+1
00035     };
00036 
00037     BookmarkItem(KBookmark &bookmark);
00038     ~BookmarkItem();
00039 
00040     KBookmark bookmark() const;
00041     void setBookmark(const KBookmark &bookmark);
00042     QVariant data(int role) const;
00043 
00044 
00045 private:
00046     KBookmark m_bookmark;
00047 };
00048 
00049 #endif

Applets

Skip menu "Applets"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal