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

kioslave/imap4

  • sources
  • kde-4.14
  • kdepimlibs
  • kioslave
  • imap4
selectinfo.h
1 /**********************************************************************
2  *
3  * imapinfo.h - IMAP4rev1 SELECT / EXAMINE handler
4  * Copyright (C) 2000 Sven Carstens <s.carstens@gmx.de>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  * Send comments and bug fixes to
21  *
22  *********************************************************************/
23 
24 #ifndef KIOSLAVE_SELECTINFO_H
25 #define KIOSLAVE_SELECTINFO_H
26 
27 #include <QStringList>
28 #include <QString>
29 
30 //class handling the info we get on EXAMINE and SELECT
31 class imapInfo
32 {
33 public:
34 
35  imapInfo ();
36  imapInfo (const QStringList &);
37  imapInfo (const imapInfo &);
38  imapInfo & operator = (const imapInfo &);
39 
40  ulong _flags (const QString &) const;
41 
42  void setCount (ulong l)
43  {
44  countAvailable_ = true;
45  count_ = l;
46  }
47 
48  void setRecent (ulong l)
49  {
50  recentAvailable_ = true;
51  recent_ = l;
52  }
53 
54  void setUnseen (ulong l)
55  {
56  unseenAvailable_ = true;
57  unseen_ = l;
58  }
59 
60  void setUidValidity (ulong l)
61  {
62  uidValidityAvailable_ = true;
63  uidValidity_ = l;
64  }
65 
66  void setUidNext (ulong l)
67  {
68  uidNextAvailable_ = true;
69  uidNext_ = l;
70  }
71 
72  void setFlags (ulong l)
73  {
74  flagsAvailable_ = true;
75  flags_ = l;
76  }
77 
78  void setFlags (const QString & inFlag)
79  {
80  flagsAvailable_ = true;
81  flags_ = _flags( inFlag );
82  }
83 
84  void setPermanentFlags (ulong l)
85  {
86  permanentFlagsAvailable_ = true;
87  permanentFlags_ = l;
88  }
89 
90  void setPermanentFlags (const QString & inFlag)
91  {
92  permanentFlagsAvailable_ = true;
93  permanentFlags_ = _flags( inFlag );
94  }
95 
96  void setReadWrite (bool b)
97  {
98  readWriteAvailable_ = true;
99  readWrite_ = b;
100  }
101 
102  ulong count () const
103  {
104  return count_;
105  }
106 
107  ulong recent () const
108  {
109  return recent_;
110  }
111 
112  ulong unseen () const
113  {
114  return unseen_;
115  }
116 
117  ulong uidValidity () const
118  {
119  return uidValidity_;
120  }
121 
122  ulong uidNext () const
123  {
124  return uidNext_;
125  }
126 
127  ulong flags () const
128  {
129  return flags_;
130  }
131 
132  ulong permanentFlags () const
133  {
134  return permanentFlags_;
135  }
136 
137  bool readWrite () const
138  {
139  return readWrite_;
140  }
141 
142  ulong countAvailable () const
143  {
144  return countAvailable_;
145  }
146 
147  ulong recentAvailable () const
148  {
149  return recentAvailable_;
150  }
151 
152  ulong unseenAvailable () const
153  {
154  return unseenAvailable_;
155  }
156 
157  ulong uidValidityAvailable () const
158  {
159  return uidValidityAvailable_;
160  }
161 
162  ulong uidNextAvailable () const
163  {
164  return uidNextAvailable_;
165  }
166 
167  ulong flagsAvailable () const
168  {
169  return flagsAvailable_;
170  }
171 
172  ulong permanentFlagsAvailable () const
173  {
174  return permanentFlagsAvailable_;
175  }
176 
177  bool readWriteAvailable () const
178  {
179  return readWriteAvailable_;
180  }
181 
182 private:
183 
184  ulong count_;
185  ulong recent_;
186  ulong unseen_;
187  ulong uidValidity_;
188  ulong uidNext_;
189  ulong flags_;
190  ulong permanentFlags_;
191  bool readWrite_;
192 
193  bool countAvailable_;
194  bool recentAvailable_;
195  bool unseenAvailable_;
196  bool uidValidityAvailable_;
197  bool uidNextAvailable_;
198  bool flagsAvailable_;
199  bool permanentFlagsAvailable_;
200  bool readWriteAvailable_;
201 };
202 
203 #endif // KIOSLAVE_SELECTINFO_H
QString
QStringList
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kioslave/imap4

Skip menu "kioslave/imap4"
  • 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
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

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