• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
identitymanager.cpp
Go to the documentation of this file.
1 /*
2  Copyright (c) 2004 David Faure <faure@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 
18  As a special exception, permission is given to link this program
19  with any edition of Qt, and distribute the resulting executable,
20  without including the source code for Qt in the source distribution.
21 */
22 
23 #include "identitymanager.h"
24 #include "kcalprefs.h"
25 
26 using namespace CalendarSupport;
27 
28 // This is called to create a default identity in case emailidentities has none
29 // (i.e. the user never used KMail before)
30 // We provide the values from KCalPrefs, since those are configurable in korganizer.
31 void IdentityManager::createDefaultIdentity( QString &fullName, QString &emailAddress )
32 {
33  fullName = KCalPrefs::instance()->fullName();
34  emailAddress = KCalPrefs::instance()->email();
35 }
36 
37 K_GLOBAL_STATIC( CalendarSupport::IdentityManager, globalIdentityManager )
38 
39 KPIMIdentities::IdentityManager *CalendarSupport::identityManager()
40 {
41  return globalIdentityManager;
42 }
kcalprefs.h
CalendarSupport::IdentityManager
Definition: identitymanager.h:31
CalendarSupport::identityManager
KPIMIdentities::IdentityManager * identityManager()
Definition: identitymanager.cpp:39
identitymanager.h
CalendarSupport::KCalPrefs::instance
static KCalPrefs * instance()
Get instance of KCalPrefs.
Definition: kcalprefs.cpp:75
CalendarSupport::KCalPrefs::email
QString email()
Definition: kcalprefs.cpp:221
CalendarSupport::KCalPrefs::fullName
QString fullName()
Definition: kcalprefs.cpp:201
CalendarSupport::IdentityManager::createDefaultIdentity
virtual void createDefaultIdentity(QString &fullName, QString &emailAddress)
Definition: identitymanager.cpp:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal