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

KMIME Library

  • KMime
  • BoolFlags
Public Member Functions
KMime::BoolFlags Class Reference

#include <boolflags.h>

List of all members.

Public Member Functions

 BoolFlags ()
 ~BoolFlags ()
void clear ()
unsigned char * data ()
bool get (unsigned int i)
void set (unsigned int i, bool b=true)

Detailed Description

Provides a class for storing boolean values in single bytes.

This class provides functionality similar to QBitArray but requires much less memory. Only 16-bits (or 2-bytes) can be stored.

Definition at line 44 of file boolflags.h.


Constructor & Destructor Documentation

KMime::BoolFlags::BoolFlags ( ) [inline]

Constructs an empty 2-byte flag storage.

Definition at line 50 of file boolflags.h.

KMime::BoolFlags::~BoolFlags ( ) [inline]

Destroys the flag storage.

Definition at line 55 of file boolflags.h.


Member Function Documentation

void KMime::BoolFlags::clear ( ) [inline]

Sets all bits to false.

Definition at line 79 of file boolflags.h.

unsigned char* KMime::BoolFlags::data ( ) [inline]

Returns a pointer to the data structure used to store the bits.

Definition at line 84 of file boolflags.h.

bool BoolFlags::get ( unsigned int  i)

Get bit number i.

Parameters:
iis the bit number. Valid values are 0 through 15. Higher values all return false.
Returns:
Value of the single bit i. Invalid bit numbers return false.

Definition at line 59 of file boolflags.cpp.

void BoolFlags::set ( unsigned int  i,
bool  b = true 
)

Sets bit number i to the value b.

Parameters:
iis the bit number. Valid values are 0 through 15. Higher values will be silently ignored.
bis the value to set for bit i.

Definition at line 35 of file boolflags.cpp.


The documentation for this class was generated from the following files:
  • boolflags.h
  • boolflags.cpp

KMIME Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • 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.6.1
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