diff options
Diffstat (limited to 'src/frontend/cdragdrop.h')
-rw-r--r-- | src/frontend/cdragdrop.h | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/src/frontend/cdragdrop.h b/src/frontend/cdragdrop.h index 3c4481f..37b2052 100644 --- a/src/frontend/cdragdrop.h +++ b/src/frontend/cdragdrop.h @@ -2,7 +2,7 @@ * * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 2007 by the BibleTime developers. +* Copyright 1999-2011 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ @@ -15,30 +15,36 @@ #include <QStringList> -/** Class which represents a bookmark. -* Includes key, module name and description, all QStrings which have getter methods. -* Can be created only through BTMimeData object. +/** + Class which represents a bookmark. Includes key, module name and description, + all QStrings which have getter methods. Can be created only through + BTMimeData object. */ class BookmarkItem { + friend class BTMimeData; public: /** Returns the key */ - const QString& key() const { + inline const QString &key() const { return m_key; } /** Returns the module name */ - const QString& module() const { + inline const QString &module() const { return m_moduleName; - } ; + } /** Returns the bookmark description */ - const QString& description() const { + inline const QString &description() const { return m_description; - }; + } + + protected: + /** Creates a new bookmark item. */ + BookmarkItem(const QString &module, const QString &key, + const QString &description); + protected: - friend class BTMimeData; - BookmarkItem(QString, QString, QString); - QString m_moduleName; //the module which is used by this item - QString m_key; //the key of a bookmark - QString m_description; //the description of a bookmark + QString m_moduleName; /**< The module which is used by this item. */ + QString m_key; /**< The key of a bookmark. */ + QString m_description; /**< The description of a bookmark. */ }; |