2
Copyright 2009 Olivier Trichet <nive@nivalis.org>
4
Permission to use, copy, modify, and distribute this software
5
and its documentation for any purpose and without fee is hereby
6
granted, provided that the above copyright notice appear in all
7
copies and that both that the copyright notice and this
8
permission notice and warranty disclaimer appear in supporting
9
documentation, and that the name of the author not be used in
10
advertising or publicity pertaining to distribution of the
11
software without specific, written prior permission.
13
The author disclaim all warranties with regard to this
14
software, including all implied warranties of merchantability
15
and fitness. In no event shall the author be liable for any
16
special, indirect or consequential damages or any damages
17
whatsoever resulting from loss of use, data or profits, whether
18
in an action of contract, negligence or other tortious action,
19
arising out of or in connection with the use or performance of
23
#ifndef KNODE_IDENTITY_WIDGET_H
24
#define KNODE_IDENTITY_WIDGET_H
26
#include "ui_identity_widget.h"
31
class SettingsContainerInterface;
37
Configuration widget for an identity.
39
class KNODE_EXPORT IdentityWidget : public KCModule, private Ui::IdentityWidget
45
Constructor for the selection widget of identity.
47
explicit IdentityWidget( SettingsContainerInterface *settingsContainer, const KComponentData &inst, QWidget *parent = 0 );
53
Reimplemented from KCModule::load().
57
Reimplemented from KCModule::save();
63
Loads the @p identity into this widget.
65
void loadFromIdentity( const KPIMIdentities::Identity &identity );
69
@param identity original identity of the settings container passed
70
to one of the constructor (may be null)
72
void setup( const KPIMIdentities::Identity &identity );
76
Called when a new identity is selected.
77
It loads the widget with its information.
79
void identitySelected( uint uoid );
82
Called when the checkbox "Use a specific identity" is
85
void useSpecificIdentity( bool useSpecific );
88
Called when the user click the "modify..." button.
90
void modifyIdentities();
94
The global settings, account or group passed to the constructor.
96
SettingsContainerInterface *mConfigurationContainer;
102
#endif // KNODE_IDENTITY_WIDGET_H