summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/fronthelpers/propertyitem.h
blob: 3afe4b681fa534230be1ea46638112e3d2dbcc1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _PROPERTYITEM_H
#define _PROPERTYITEM_H

#include <tdelistview.h>

class PropertiesDlg;
class Propertylist;

class PropertyListViewItem:public TDEListViewItem
{
    friend class PropertiesDlg;
    friend class Propertylist;

    public:
        static const int _RTTI_ = 1001;
        PropertyListViewItem(TDEListView *parent,const TQString&,const TQString&);
        PropertyListViewItem(TDEListView *parent);
        virtual ~PropertyListViewItem();

        const TQString&startName()const{return m_startName;}
        const TQString&startValue()const{return m_startValue;}
        const TQString&currentName()const{return m_currentName;}
        const TQString&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 TQString&);

    protected:
        TQString m_currentName,m_startName,m_currentValue,m_startValue;
        bool m_deleted;
};

#endif