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

KMBox Library

  • 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
29namespace KMBox {
30
31class 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 quint64 mInitialMboxFileSize;
57 QString mLockFileName;
58 MBox *mMBox;
59 QFile mMboxFile;
60 QTimer mUnlockTimer;
61 QRegExp mSeparatorMatcher;
62 MBox::LockType mLockType;
63 bool mFileLocked;
64 bool mReadOnly;
65
66
67 public:
68 static QByteArray escapeFrom( const QByteArray &msg );
69
73 static QByteArray mboxMessageSeparator( const QByteArray &msg );
74
78 static void unescapeFrom( char *msg, size_t size );
79};
80
81}
82
83#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-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 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
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