summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abconfig.h
blob: 68d087c84291b85128c25da36506b154e330c30d (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef _ABCONFIG_H_
#define _ABCONFIG_H_

#include <qstringlist.h>
#include <qmainwindow.h>

class AbConfig
{
public:
	enum LPSearchMode{
		LastName = 0,
		FileAs,
		LASTELEMENT
	};



    AbConfig();
    ~AbConfig();

    // Search Settings
    bool useRegExp() const;
    bool useWildCards() const;
    bool beCaseSensitive() const;
    bool useQtMail() const;
    bool useOpieMail() const;
    int  fontSize() const;
    QValueList<int> orderList() const;
    QMainWindow::ToolBarDock getToolBarPos() const;
    bool fixedBars() const;
    LPSearchMode letterPickerSearch() const;
    const QString &category() const;

    void setUseRegExp( bool v );
    void setUseWildCards( bool v );
    void setBeCaseSensitive( bool v );
    void setUseQtMail( bool v );
    void setUseOpieMail( bool v );
    void setFontSize( int v );
    void setOrderList( const QValueList<int>& list );
    void setToolBarDock( const QMainWindow::ToolBarDock v );
    void setFixedBars( const bool fixed );
    void setLetterPickerSearch( const LPSearchMode mode );
    void setCategory( const QString &cat );

    void operator= ( const AbConfig& cnf );

    void load();
    void save();

protected:
/*     virtual void itemUp(); */
/*     virtual void itemDown(); */

    QStringList contFields;

    bool m_useQtMail;
    bool m_useOpieMail;
    bool m_useRegExp;
    bool m_beCaseSensitive;
    int m_fontSize;
    QValueList<int> m_ordered;
    int m_barPos;
    bool m_fixedBars;
    int m_lpSearchMode;
    QString m_category;

    bool m_changed;
};


#endif