secrecy.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KABC_SECRECY_H
00022 #define KABC_SECRECY_H
00023
00024 #include <qvaluelist.h>
00025
00026 namespace KABC {
00027
00028 class Secrecy
00029 {
00030 friend QDataStream &operator<<( QDataStream &, const Secrecy & );
00031 friend QDataStream &operator>>( QDataStream &, Secrecy & );
00032
00033 public:
00034 typedef QValueList<int> TypeList;
00035
00043 enum Types {
00044 Public,
00045 Private,
00046 Confidential
00047 };
00048
00054 Secrecy( int type = Private );
00055
00056 bool operator==( const Secrecy & ) const;
00057 bool operator!=( const Secrecy & ) const;
00058
00062 void setType( int type );
00063
00067 int type() const;
00068
00072 static TypeList typeList();
00073
00077 static QString typeLabel( int type );
00078
00082 QString asString() const;
00083
00084 private:
00085 int mType;
00086 };
00087
00088 }
00089 #endif
This file is part of the documentation for kdelibs Version 3.1.0.