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

kmobiletools

addressbookentryitem.h

Go to the documentation of this file.
00001 /***************************************************************************
00002    Copyright (C) 2007 by Matthias Lechner <matthias@lmme.de>
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 2 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the
00016    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef ADDRESSBOOKENTRYITEM_H
00021 #define ADDRESSBOOKENTRYITEM_H
00022 
00023 #include <QtGui/QListWidgetItem>
00024 #include <QtGui/QListWidget>
00025 
00026 #include <libkmobiletools/addressbookentry.h>
00027 
00031 class AddressbookEntryItem : public QListWidgetItem
00032 {
00033 public:
00034     enum State {
00035         Default = 0x01,
00036         AdditionRequested = 0x02,   // item is marked as to be added
00037         EditingRequested = 0x04,    // item is marked as to be edited
00038         RemovalRequested = 0x08     // item is marked as to be removed
00039     };
00040 
00041     AddressbookEntryItem( QListWidget* parent = 0 );
00042 
00048     void setAddressee( const KMobileTools::AddressbookEntry& addressee );
00049 
00055     KMobileTools::AddressbookEntry addressee() const;
00056 
00057     void setState( AddressbookEntryItem::State state );
00058 
00059     AddressbookEntryItem::State state() const;
00060 
00061     ~AddressbookEntryItem();
00062 
00063 private:
00064     KMobileTools::AddressbookEntry m_entry;
00065     AddressbookEntryItem::State m_state;
00066     QFont m_defaultFont;
00067 };
00068 
00069 #endif

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal