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

kgpg

images.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Jimmy Gilles                                    *
00003  *   jimmygilles@gmail.com                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
00019  ***************************************************************************/
00020 
00021 #include "images.h"
00022 
00023 #include <KIconLoader>
00024 
00025 namespace KgpgCore
00026 {
00027 
00028 QPixmap Images::single()
00029 {
00030     static QPixmap single;
00031     if (single.isNull())
00032         single = KIconLoader::global()->loadIcon("key-single", KIconLoader::Small, 20);
00033     return single;
00034 }
00035 
00036 QPixmap Images::pair()
00037 {
00038     static QPixmap pair;
00039     if (pair.isNull())
00040         pair = KIconLoader::global()->loadIcon("key-pair", KIconLoader::Small, 20);
00041     return pair;
00042 }
00043 
00044 QPixmap Images::group()
00045 {
00046     static QPixmap group;
00047     if (group.isNull())
00048         group = KIconLoader::global()->loadIcon("key-group", KIconLoader::Small, 20);
00049     return group;
00050 }
00051 
00052 QPixmap Images::orphan()
00053 {
00054     static QPixmap oprpan;
00055     if (oprpan.isNull())
00056         oprpan = KIconLoader::global()->loadIcon("key-orphan", KIconLoader::Small, 20);
00057     return oprpan;
00058 }
00059 
00060 QPixmap Images::signature()
00061 {
00062     static QPixmap signature;
00063     if (signature.isNull())
00064         signature = KIconLoader::global()->loadIcon("application-pgp-signature", KIconLoader::Small, 20);
00065     return signature;
00066 }
00067 
00068 QPixmap Images::userId()
00069 {
00070     static QPixmap userid;
00071     if (userid.isNull())
00072         userid = KIconLoader::global()->loadIcon("x-office-contact", KIconLoader::Small, 20);
00073     return userid;
00074 }
00075 
00076 QPixmap Images::photo()
00077 {
00078     static QPixmap photo;
00079     if (photo.isNull())
00080         photo = KIconLoader::global()->loadIcon("image-x-generic", KIconLoader::Small, 20);
00081     return photo;
00082 }
00083 
00084 QPixmap Images::revoke()
00085 {
00086     static QPixmap revoke;
00087     if (revoke.isNull())
00088         revoke = KIconLoader::global()->loadIcon("dialog-error", KIconLoader::Small, 20);
00089     return revoke;
00090 }
00091 
00092 QPixmap Images::kgpg()
00093 {
00094     static QPixmap kgpg;
00095     if (kgpg.isNull())
00096         kgpg = KIconLoader::global()->loadIcon("kgpg", KIconLoader::Desktop);
00097     return kgpg;
00098 }
00099 
00100 } // namespace KgpgCore

kgpg

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils 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