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__
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 7 2012 23:55:58 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 7 2012 23:55:58 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.