Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

abconfig.h

Go to the documentation of this file.
00001 #ifndef _ABCONFIG_H_
00002 #define _ABCONFIG_H_
00003 
00004 #include <qstringlist.h>
00005 #include <qmainwindow.h>
00006 
00007 class AbConfig
00008 {
00009 public:
00010         enum LPSearchMode{
00011                 LastName = 0,
00012                 FileAs,
00013                 LASTELEMENT
00014         };
00015 
00016 
00017 
00018     AbConfig();
00019     ~AbConfig();
00020 
00021     // Search Settings
00022     bool useRegExp() const;
00023     bool useWildCards() const;
00024     bool beCaseSensitive() const;
00025     bool useQtMail() const;
00026     bool useOpieMail() const;
00027     int  fontSize() const;
00028     QValueList<int> orderList() const;
00029     QMainWindow::ToolBarDock getToolBarPos() const;
00030     bool fixedBars() const;
00031     LPSearchMode letterPickerSearch() const;
00032     const QString &category() const;
00033 
00034     void setUseRegExp( bool v );
00035     void setUseWildCards( bool v );
00036     void setBeCaseSensitive( bool v );
00037     void setUseQtMail( bool v );
00038     void setUseOpieMail( bool v );
00039     void setFontSize( int v );
00040     void setOrderList( const QValueList<int>& list );
00041     void setToolBarDock( const QMainWindow::ToolBarDock v );
00042     void setFixedBars( const bool fixed );
00043     void setLetterPickerSearch( const LPSearchMode mode );
00044     void setCategory( const QString &cat );
00045 
00046     void operator= ( const AbConfig& cnf );
00047 
00048     void load();
00049     void save();
00050 
00051 protected:
00052 /*     virtual void itemUp(); */
00053 /*     virtual void itemDown(); */
00054 
00055     QStringList contFields;
00056 
00057     bool m_useQtMail;
00058     bool m_useOpieMail;
00059     bool m_useRegExp;
00060     bool m_beCaseSensitive;
00061     int m_fontSize;
00062     QValueList<int> m_ordered;
00063     int m_barPos;
00064     bool m_fixedBars;
00065     int m_lpSearchMode;
00066     QString m_category;
00067 
00068     bool m_changed;
00069 };
00070 
00071 
00072 #endif

Generated on Sat Nov 5 16:15:45 2005 for OPIE by  doxygen 1.4.2