summaryrefslogtreecommitdiff
path: root/src/urlbar/bookmarkwidget.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-05-27 12:00:28 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-05-27 23:34:32 +0200
commita33b32930451d479108fce701267f6c8bdc19319 (patch)
treedd45422752326580e8596e0aac3e047b976faca7 /src/urlbar/bookmarkwidget.h
parentFancy bookmarking on rekonq :) (diff)
downloadrekonq-a33b32930451d479108fce701267f6c8bdc19319.tar.xz
Let nepomuk dependencies being optional
Diffstat (limited to 'src/urlbar/bookmarkwidget.h')
-rw-r--r--src/urlbar/bookmarkwidget.h42
1 files changed, 27 insertions, 15 deletions
diff --git a/src/urlbar/bookmarkwidget.h b/src/urlbar/bookmarkwidget.h
index 01f672e9..7d5636a1 100644
--- a/src/urlbar/bookmarkwidget.h
+++ b/src/urlbar/bookmarkwidget.h
@@ -29,13 +29,19 @@
#define BOOKMARKWIDGET_H
// Qt Includes
-#include <QtGui/QMenu>
-#include <QtGui/QGridLayout>
-#include <QtGui/QPlainTextEdit>
-
-#include <Nepomuk/Resource>
-#include <Nepomuk/Tag>
-#include <Nepomuk/Vocabulary/NFO>
+#include <QMenu>
+#include <QGridLayout>
+#include <QPlainTextEdit>
+
+// Nepomuk config include
+#include "../config-nepomuk.h"
+
+#ifdef HAVE_NEPOMUK
+ // Nepomuk Includes
+ #include <Nepomuk/Resource>
+ #include <Nepomuk/Tag>
+ #include <Nepomuk/Vocabulary/NFO>
+#endif
// Forward Declarations
class KBookmark;
@@ -52,34 +58,40 @@ public:
virtual ~BookmarkWidget();
void showAt(const QPoint &pos);
+
+#ifdef HAVE_NEPOMUK
void addTags(QList<Nepomuk::Tag>);
void parseTags();
void loadTags();
-
+#endif
+
Q_SIGNALS:
void updateIcon();
-
+private:
+ void setupFolderComboBox();
+
private Q_SLOTS:
void accept();
void removeBookmark();
+
+#ifdef HAVE_NEPOMUK
void setRatingSlot( int rate );
void addCommentSlot();
void linkToResourceSlot();
- //void tagListSlot();
-
+#endif
+
private:
KBookmark *m_bookmark;
KLineEdit *m_name;
KComboBox *m_folder;
KLineEdit *m_tagLine;
QPlainTextEdit *m_commentEdit;
- //QGridLayout* m_tagList;
- Nepomuk::Resource m_nfoResource;
QStringList m_tList;
-
- void setupFolderComboBox();
+#ifdef HAVE_NEPOMUK
+ Nepomuk::Resource m_nfoResource;
+#endif
};
#endif