/***************************************************************************
- * Copyright (C) 2009 by Peter Penz <peter.penz@gmx.at> *
+ * Copyright (C) 2009 by Peter Penz <peter.penz19@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
#include <libdolphin_export.h>
-#include <kfileitem.h>
+#include <KFileItem>
#include <kversioncontrolplugin.h>
#include <QList>
#include <QMutex>
Q_OBJECT
public:
- VersionControlObserver(QAbstractItemView* view);
+ VersionControlObserver(QWidget* parent);
virtual ~VersionControlObserver();
QList<QAction*> contextMenuActions(const KFileItemList& items) const;
QList<QAction*> contextMenuActions(const QString& directory) const;
-
+
signals:
/**
* Is emitted if an information message with the content \a msg
* should be shown.
*/
void operationCompletedMessage(const QString& msg);
-
+
private slots:
/**
* Invokes verifyDirectory() with a small delay. If delayedDirectoryVerification()
* delayedDirectoryVerification() it and assures that the verification of
* the directory is done silently without information messages.
*/
- void silentDirectoryVerification();
+ void silentDirectoryVerification();
void verifyDirectory();
* and applys the item states.
*/
void slotThreadFinished();
-
+
private:
struct ItemState
{
bool m_versionedDirectory;
bool m_silentUpdate; // if true, no messages will be send during the update
// of version states
-
- QAbstractItemView* m_view;
- KDirLister* m_dirLister;
- DolphinModel* m_dolphinModel;
-
+
+ QWidget* m_view;
+ //KDirLister* m_dirLister;
+ //DolphinModel* m_dolphinModel;
+
QTimer* m_dirVerificationTimer;
KVersionControlPlugin* m_plugin;