summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/addressbook/addressplugin.cpp
blob: 5d5d34c9cb4c9d7a3f3fadc07998665669562962 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * addressplugin.cpp
 *
 * 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.                                   *
 *                                                                         *
 ***************************************************************************/



#include "addressplugin.h"
#include "addresspluginconfig.h"

AddressBookPlugin::AddressBookPlugin():
	m_abWidget( 0l )
{
}

AddressBookPlugin::~AddressBookPlugin() {
}

QString AddressBookPlugin::pluginName() const {
    return QObject::tr( "AddressBook plugin" );
}

double AddressBookPlugin::versionNumber() const {
    return 0.3;
}

QString AddressBookPlugin::pixmapNameWidget() const {
    return "addressbook/AddressBook";
}

QWidget* AddressBookPlugin::widget( QWidget *wid ) {
    m_abWidget = new AddressBookPluginWidget( wid, "AddressBook" );
    return m_abWidget;
}

QString AddressBookPlugin::pixmapNameConfig() const {
    return "addressbook/AddressBook";
}

TodayConfigWidget* AddressBookPlugin::configWidget( QWidget* wid ) {
    return new AddressBookPluginConfig( wid , "AddressBook" );
}

QString AddressBookPlugin::appName() const {
    return  "addressbook";
}


bool AddressBookPlugin::excludeFromRefresh() const {
    return false;
}

void AddressBookPlugin::refresh()
{
    m_abWidget->refresh( NULL );
}

void AddressBookPlugin::reinitialize()
{
    m_abWidget->reinitialize();
}