• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KMIME Library

boolflags.h
Go to the documentation of this file.
00001 /*
00002     Copyright (c) 1999-2001 the KMime authors.
00003     See file AUTHORS for details
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library 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 GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00029 #ifndef __KMIME_BOOLFLAGS_H__
00030 #define __KMIME_BOOLFLAGS_H__
00031 
00032 #include "kmime_export.h"
00033 
00034 namespace KMime {
00035 
00043 // TODO: KDE5: BIC: Remove this class, it is unused.
00044 class KMIME_EXPORT BoolFlags {
00045 
00046   public:
00050     BoolFlags() { clear(); }
00051 
00055     ~BoolFlags() {}
00056 
00064     void set( unsigned int i, bool b=true );
00065 
00074     bool get( unsigned int i );
00075 
00079     void clear() { mBits[0]=0; mBits[1]=0; }
00080 
00084     unsigned char *data() { return mBits; }
00085 
00086   private:
00090     unsigned char mBits[2];  //space for 16 flags
00091 };
00092 
00093 }  //namespace KMime
00094 
00095 #endif // __KMIME_BOOLFLAGS_H__

KMIME Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.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