folderIface.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifdef HAVE_CONFIG_H
00031 #include <config.h>
00032 #endif
00033
00034 #include "folderIface.h"
00035 #include "kmfoldermgr.h"
00036 #include "kmfolder.h"
00037
00038 #include <stdlib.h>
00039
00040 #include <kdebug.h>
00041
00042 namespace KMail {
00043
00044 FolderIface::FolderIface( const QString& vpath )
00045 : DCOPObject( "FolderIface" ), mPath( vpath )
00046 {
00047
00048 mFolder = kmkernel->folderMgr()->getFolderByURL( mPath );
00049 if ( !mFolder )
00050 mFolder = kmkernel->imapFolderMgr()->getFolderByURL( mPath );
00051 if ( !mFolder )
00052 mFolder = kmkernel->dimapFolderMgr()->getFolderByURL( mPath );
00053 }
00054
00055 QString
00056 FolderIface::path() const
00057 {
00058 return mPath;
00059 }
00060
00061 bool
00062 FolderIface::usesCustomIcons() const
00063 {
00064 return mFolder->useCustomIcons();
00065 }
00066
00067 QString
00068 FolderIface::normalIconPath() const
00069 {
00070 return mFolder->normalIconPath();
00071 }
00072
00073 QString
00074 FolderIface::unreadIconPath() const
00075 {
00076 return mFolder->unreadIconPath();
00077 }
00078
00079 int
00080 FolderIface::messages()
00081 {
00082 return mFolder->count();
00083 }
00084
00085 int
00086 FolderIface::unreadMessages()
00087 {
00088 return mFolder->countUnread();
00089 }
00090
00091 int
00092 FolderIface::unreadRecursiveMessages()
00093 {
00094 return mFolder->countUnreadRecursive();
00095 }
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127 }
00128
00129 #include "folderIface.moc"
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 26 23:23:19 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003