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

KMBox Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kmbox
mbox_p.h
1 /*
2  Copyright (c) 2009 Bertjan Broeksema <broeksema@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KMBOX_MBOX_P_H
21 #define KMBOX_MBOX_P_H
22 
23 #include "mbox.h"
24 
25 #include <QtCore/QFile>
26 #include <QtCore/QObject>
27 #include <QtCore/QTimer>
28 
29 namespace KMBox {
30 
31 class MBoxPrivate : public QObject
32 {
33  Q_OBJECT
34 
35  public:
36  MBoxPrivate( MBox *mbox );
37 
38  virtual ~MBoxPrivate();
39 
40  void close();
41 
42  void initLoad( const QString &fileName );
43 
44  bool open();
45 
46  bool startTimerIfNeeded();
47 
48  bool isMBoxSeparator( const QByteArray &line ) const;
49 
50  public Q_SLOTS:
51  void unlockMBox();
52 
53  public:
54  QByteArray mAppendedEntries;
55  MBoxEntry::List mEntries;
56  bool mFileLocked;
57  quint64 mInitialMboxFileSize;
58  QString mLockFileName;
59  MBox::LockType mLockType;
60  MBox *mMBox;
61  QFile mMboxFile;
62  bool mReadOnly;
63  QTimer mUnlockTimer;
64  QRegExp mSeparatorMatcher;
65 
66  public:
67  static QByteArray escapeFrom( const QByteArray &msg );
68 
72  static QByteArray mboxMessageSeparator( const QByteArray &msg );
73 
77  static void unescapeFrom( char *msg, size_t size );
78 };
79 
80 }
81 
82 #endif // KMBOX_MBOX_P_H
KMBox::MBoxEntry::List
QList< MBoxEntry > List
Describes a list of mbox entry objects.
Definition: mboxentry.h:44
KMBox::MBox::LockType
LockType
Describes the type of locking that will be used.
Definition: mbox.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMBox Library

Skip menu "KMBox Library"
  • Main Page
  • Alphabetical List
  • Class List
  • 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
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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