~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to kalarm/alarmtimewidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-10-03 22:27:55 UTC
  • mfrom: (1.1.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20091003222755-nm1u1hm80385m8h3
Tags: 4:4.3.2-0ubuntu1
* New upstream release
  - Bump build-deps
  - Remove kubuntu_02_dimap_folder_rename_fix.diff fixed by upstream
  - Remove ktimeticker obsolete package from kontact suggests
  - Remove several oxygen icons which also are in kde-icons-oxygen,
    add in not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  alarmtimewidget.h  -  alarm date/time entry widget
3
3
 *  Program:  kalarm
4
 
 *  Copyright © 2001-2008 by David Jarvie <djarvie@kde.org>
 
4
 *  Copyright © 2001-2009 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
40
40
{
41
41
                Q_OBJECT
42
42
        public:
43
 
                enum {       // 'mode' values for constructor
44
 
                        AT_TIME,     // "At ..."
45
 
                        DEFER_TIME   // "Defer to ..."
 
43
                enum Mode {       // 'mode' values for constructor
 
44
                        AT_TIME        = 0x01,  // "At ..."
 
45
                        DEFER_TIME     = 0x02,  // "Defer to ..."
 
46
                        DEFER_ANY_TIME = DEFER_TIME | 0x04  // "Defer to ..." with 'any time' option
46
47
                };
47
 
                AlarmTimeWidget(const QString& groupBoxTitle, int mode, QWidget* parent = 0);
48
 
                explicit AlarmTimeWidget(int mode, QWidget* parent = 0);
 
48
                AlarmTimeWidget(const QString& groupBoxTitle, Mode, QWidget* parent = 0);
 
49
                explicit AlarmTimeWidget(Mode, QWidget* parent = 0);
49
50
                KDateTime        getDateTime(int* minsFromNow = 0, bool checkExpired = true, bool showErrorMessage = true, QWidget** errorWidget = 0) const;
50
51
                void             setDateTime(const DateTime&);
51
52
                void             setMinDateTimeIsCurrent();
79
80
                void             showTimeZoneSelector();
80
81
 
81
82
        private:
82
 
                void             init(int mode, const QString& groupBoxTitle = QString());
 
83
                void             init(Mode, const QString& groupBoxTitle = QString());
83
84
                void             setAnyTime();
84
85
                void             setMaxDelayTime(const KDateTime& now);
85
86
                void             setMaxMinTimeIf(const KDateTime& now);