~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kalarm/preferences.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  preferences.cpp  -  program preference settings
3
3
 *  Program:  kalarm
4
 
 *  Copyright © 2001-2010 by David Jarvie <djarvie@kde.org>
 
4
 *  Copyright © 2001-2011 by David Jarvie <djarvie@kde.org>
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
#include "kalarm.h"
22
22
 
23
23
#include "functions.h"
24
 
#include "identities.h"
25
24
#include "kamail.h"
26
25
#include "messagebox.h"
27
26
#include "preferences.moc"
28
27
 
 
28
#include <kalarmcal/identities.h>
 
29
 
29
30
#include <kpimidentities/identity.h>
30
31
#include <kpimidentities/identitymanager.h>
31
32
#include <kholidays/holidays.h>
32
 
using namespace KHolidays;
33
33
 
34
34
#include <kglobal.h>
35
35
#include <kconfiggroup.h>
42
42
#include <time.h>
43
43
#include <unistd.h>
44
44
 
 
45
using namespace KHolidays;
 
46
using namespace KAlarmCal;
45
47
 
46
48
// Config file entry names
47
49
static const char* GENERAL_SECTION  = "General";
91
93
 
92
94
Preferences::Preferences()
93
95
{
94
 
    QObject::connect(this, SIGNAL(base_StartOfDayChanged(const QDateTime&)), SLOT(startDayChange(const QDateTime&)));
95
 
    QObject::connect(this, SIGNAL(base_TimeZoneChanged(const QString&)), SLOT(timeZoneChange(const QString&)));
96
 
    QObject::connect(this, SIGNAL(base_HolidayRegionChanged(const QString&)), SLOT(holidaysChange(const QString&)));
97
 
    QObject::connect(this, SIGNAL(base_WorkTimeChanged(const QDateTime&, const QDateTime&, int)), SLOT(workTimeChange(const QDateTime&, const QDateTime&, int)));
 
96
    QObject::connect(this, SIGNAL(base_StartOfDayChanged(QDateTime)), SLOT(startDayChange(QDateTime)));
 
97
    QObject::connect(this, SIGNAL(base_TimeZoneChanged(QString)), SLOT(timeZoneChange(QString)));
 
98
    QObject::connect(this, SIGNAL(base_HolidayRegionChanged(QString)), SLOT(holidaysChange(QString)));
 
99
    QObject::connect(this, SIGNAL(base_WorkTimeChanged(QDateTime,QDateTime,int)), SLOT(workTimeChange(QDateTime,QDateTime,int)));
98
100
}
99
101
 
100
102
void Preferences::setAskAutoStart(bool yes)