tdeioslave/mbox

stat.h
1 /*
2  * This is a simple tdeioslave to handle mbox-files.
3  * Copyright (C) 2004 Mart Kelder (mart.kde@hccnet.nl)
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 #ifndef STAT_H
20 #define STAT_H
21 
22 #include <tdeio/global.h>
23 
24 class ReadMBox;
25 class UrlInfo;
26 
27 class KURL;
28 
29 class TQString;
30 
35 class Stat
36 {
37 public:
41  Stat() {}
42 
46  ~Stat() {}
47 
53  static TDEIO::UDSEntry stat( const UrlInfo& info );
62  static TDEIO::UDSEntry stat( ReadMBox& mbox, const UrlInfo& info );
63 
69  static TDEIO::UDSEntry statDirectory( const UrlInfo& info );
70 
76  static TDEIO::UDSEntry statMessage( const UrlInfo& info );
77 private:
78  static void addAtom( TDEIO::UDSEntry& entry, unsigned int key, const TQString& value );
79  static void addAtom( TDEIO::UDSEntry& entry, unsigned int key, const long value );
80 };
81 
82 #endif
This class handels reading from a mbox-file.
Definition: readmbox.h:37
This class is used to get the stats of a mbox-email or mbox-file.
Definition: stat.h:36
~Stat()
Emtpy destructor.
Definition: stat.h:46
static TDEIO::UDSEntry statDirectory(const UrlInfo &info)
This function gets the stats of a given mbox-file in an UDSEntry.
Definition: stat.cpp:66
static TDEIO::UDSEntry statMessage(const UrlInfo &info)
This function gets the stats of a geven mbox-message in a UDSEntry.
Definition: stat.cpp:78
Stat()
Empty constructor.
Definition: stat.h:41
static TDEIO::UDSEntry stat(const UrlInfo &info)
This functions gives information with a given UrlInfo.
Definition: stat.cpp:29