summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/addressbook/addresspluginconfig.h
blob: 6f128d4a8b466b00793ba71e380b479a85e9bba3 (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
/*
 * addresspluginconfig.h
 *
 * copyright   : (c) 2003 by Stefan Eilers
 * email       : eilers.stefan@epost.de
 *
 * This implementation was derived from the todolist plugin implementation
 *
 */
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef ADDRESSBOOK_PLUGIN_CONFIG_H
#define ADDRESSBOOK_PLUGIN_CONFIG_H

#include <qwidget.h>
#include <qspinbox.h>

#include <opie/todayconfigwidget.h>

class AddressBookPluginConfig : public TodayConfigWidget {


public:

    AddressBookPluginConfig( QWidget *parent,  const char *name );
    ~AddressBookPluginConfig();

private:
    /**
     * if changed then save
     */
    bool changed();
    void readConfig();
    void writeConfig();

    QSpinBox* SpinBox2;
    QSpinBox* SpinBoxClip;
    QSpinBox* SpinDaysClip;

    // how many lines should be showed in the AddressBook section
    int m_max_lines_task;
    // clip the lines after X chars
    int m_maxCharClip;
    // How many days look ahead
    int m_daysLookAhead;

};





#endif