~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to korganizer/koprefs.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "korganizer_export.h"
28
28
#include "koprefs_base.h"
29
29
 
30
 
#include <kdatetime.h>
 
30
#include <calendarviews/eventviews/prefs.h>
 
31
 
 
32
#include <KDateTime>
31
33
 
32
34
#include <QHash>
33
35
 
 
36
#include <boost/shared_ptr.hpp>
 
37
 
34
38
class QFont;
35
39
class QColor;
36
40
class QStringList;
44
48
    instance. */
45
49
    static KOPrefs *instance();
46
50
 
 
51
    EventViews::PrefsPtr eventViewsPreferences() const;
 
52
 
47
53
    /** Set preferences to default values */
48
54
    void usrSetDefaults();
49
55
 
53
59
    /** Write preferences to config file */
54
60
    void usrWriteConfig();
55
61
 
56
 
  protected:
57
 
    void setCategoryDefaults();
58
 
    void setTimeZoneDefault();
59
 
 
60
 
    /** Fill empty mail fields with default values. */
61
 
    void fillMailDefaults();
62
 
 
63
62
  private:
64
63
    /** Constructor disabled for public. Use instance() to create a KOPrefs
65
64
    object. */
66
65
    KOPrefs();
67
 
 
68
 
    static KOPrefs *mInstance;
 
66
    friend class KOPrefsPrivate;
69
67
 
70
68
  public:
71
 
    // preferences data
72
 
    void setFullName( const QString & );
73
 
    QString fullName();
74
 
    void setEmail( const QString & );
75
 
    QString email();
76
 
    /// Returns all email addresses for the user.
77
 
    QStringList allEmails();
78
 
    /// Returns all email addresses together with the full username for the user.
79
 
    QStringList fullEmails();
80
 
    /// Return true if the given email belongs to the user
81
 
    bool thatIsMe( const QString &email );
82
 
 
83
 
    void setCategoryColor( const QString &cat, const QColor &color );
84
 
    QColor categoryColor( const QString &cat ) const;
85
 
    bool hasCategoryColor( const QString &cat ) const;
86
 
 
87
69
    void setResourceColor ( const QString &, const QColor & );
88
70
    QColor resourceColor( const QString & );
89
71
 
90
 
    void setTimeSpec( const KDateTime::Spec &spec );
91
 
    KDateTime::Spec timeSpec();
92
 
 
93
 
    QString mHtmlExportFile;
94
 
 
95
 
    // Groupware passwords
96
 
    QString mPublishPassword;
97
 
    QString mRetrievePassword;
98
 
 
99
 
    QStringList timeScaleTimezones();
 
72
    void setHtmlExportFile( const QString &fileName );
 
73
    QString htmlExportFile() const;
 
74
 
 
75
    QStringList timeScaleTimezones() const;
100
76
    void setTimeScaleTimezones( const QStringList &list );
101
77
 
102
78
  private:
107
83
    QColor mDefaultResourceColor;
108
84
 
109
85
    QFont mDefaultMonthViewFont;
110
 
    QFont mDefaultAgendaTimeLabelsFont;
111
86
 
112
 
    KDateTime::Spec mTimeSpec;
113
87
    QStringList mTimeScaleTimeZones;
114
88
 
 
89
    QString mHtmlExportFile;
 
90
 
 
91
    EventViews::PrefsPtr mEventViewsPrefs;
 
92
 
115
93
  public: // Do not use - except in KOPrefsDialogMain
116
94
    QString mName;
117
95
    QString mEmail;