libkdenetwork Library API Documentation

boolflags.h

00001 /* 00002 boolflags.h 00003 00004 KNode, the KDE newsreader 00005 Copyright (c) 1999-2001 the KNode authors. 00006 See file AUTHORS for details 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software Foundation, 00014 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US 00015 */ 00016 00017 #ifndef __KMIME_BOOLFLAGS_H__ 00018 #define __KMIME_BOOLFLAGS_H__ 00019 00026 class BoolFlags { 00027 00028 public: 00029 BoolFlags() { clear(); } 00030 ~BoolFlags() {} 00031 00032 void set(unsigned int i, bool b=true); 00033 bool get(unsigned int i); 00034 void clear() { bits[0]=0; bits[1]=0; } 00035 unsigned char *data() { return bits; } 00036 00037 protected: 00038 unsigned char bits[2]; //space for 16 flags 00039 }; 00040 00041 #endif // __KMIME_BOOLFLAGS_H__
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:48:39 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003