summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/fronthelpers/propertyitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/svnfrontend/fronthelpers/propertyitem.h')
-rw-r--r--src/svnfrontend/fronthelpers/propertyitem.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/svnfrontend/fronthelpers/propertyitem.h b/src/svnfrontend/fronthelpers/propertyitem.h
new file mode 100644
index 0000000..c630c7c
--- /dev/null
+++ b/src/svnfrontend/fronthelpers/propertyitem.h
@@ -0,0 +1,49 @@
+#ifndef _PROPERTYITEM_H
+#define _PROPERTYITEM_H
+
+#include <klistview.h>
+
+class PropertiesDlg;
+class Propertylist;
+
+class PropertyListViewItem:public KListViewItem
+{
+ friend class PropertiesDlg;
+ friend class Propertylist;
+
+ public:
+ static const int _RTTI_ = 1001;
+ PropertyListViewItem(KListView *parent,const QString&,const QString&);
+ PropertyListViewItem(KListView *parent);
+ virtual ~PropertyListViewItem();
+
+ const QString&startName()const{return m_startName;}
+ const QString&startValue()const{return m_startValue;}
+ const QString&currentName()const{return m_currentName;}
+ const QString&currentValue()const{return m_currentValue;}
+
+ void checkValue();
+ void checkName();
+ void deleteIt();
+ void unDeleteIt();
+ bool deleted()const{return m_deleted;}
+
+ bool different()const;
+
+ virtual int rtti()const{return _RTTI_;}
+
+ //! Check if a specific property may just internale
+ /*!
+ * That means, a property of that may not edit,added or deleted.
+ *
+ * This moment it just checks for "svn:special"
+ * \return true if protected property otherwise false
+ */
+ static bool protected_Property(const QString&);
+
+ protected:
+ QString m_currentName,m_startName,m_currentValue,m_startValue;
+ bool m_deleted;
+};
+
+#endif