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

KMIME Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kmime
boolflags.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 1999-2001 the KMime authors.
3  See file AUTHORS for details
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
29 #ifndef __KMIME_BOOLFLAGS_H__
30 #define __KMIME_BOOLFLAGS_H__
31 
32 #include "kmime_export.h"
33 
34 namespace KMime {
35 
43 // TODO: KDE5: BIC: Remove this class, it is unused.
44 class KMIME_EXPORT BoolFlags {
45 
46  public:
50  BoolFlags() { clear(); }
51 
55  ~BoolFlags() {}
56 
64  void set( unsigned int i, bool b=true );
65 
74  bool get( unsigned int i );
75 
79  void clear() { mBits[0]=0; mBits[1]=0; }
80 
84  unsigned char *data() { return mBits; }
85 
86  private:
90  unsigned char mBits[2]; //space for 16 flags
91 };
92 
93 } //namespace KMime
94 
95 #endif // __KMIME_BOOLFLAGS_H__
KMime::BoolFlags::data
unsigned char * data()
Returns a pointer to the data structure used to store the bits.
Definition: boolflags.h:84
KMime::BoolFlags
Provides a class for storing boolean values in single bytes.
Definition: boolflags.h:44
KMime::BoolFlags::~BoolFlags
~BoolFlags()
Destroys the flag storage.
Definition: boolflags.h:55
KMime::BoolFlags::BoolFlags
BoolFlags()
Constructs an empty 2-byte flag storage.
Definition: boolflags.h:50
KMime::BoolFlags::clear
void clear()
Sets all bits to false.
Definition: boolflags.h:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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