34 #include "folderIface.h"
36 #include "kmmainwin.h"
37 #include "kmfoldertree.h"
38 #include "kmfoldermgr.h"
41 #include <tdeapplication.h>
48 FolderIface::FolderIface( const TQString& vpath )
49 : DCOPObject( "FolderIface" ), mPath( vpath )
52 mFolder = kmkernel->folderMgr()->getFolderByURL( mPath );
54 mFolder = kmkernel->imapFolderMgr()->getFolderByURL( mPath );
56 mFolder = kmkernel->dimapFolderMgr()->getFolderByURL( mPath );
61 FolderIface::path() const
67 FolderIface::displayName() const
69 return mFolder->label();
73 FolderIface::displayPath() const
75 return mFolder->prettyURL();
79 FolderIface::usesCustomIcons() const
81 return mFolder->useCustomIcons();
85 FolderIface::normalIconPath() const
87 return mFolder->normalIconPath();
91 FolderIface::unreadIconPath() const
93 return mFolder->unreadIconPath();
97 FolderIface::messages()
100 return mFolder->count( !mFolder->isOpened() );
104 FolderIface::unreadMessages()
106 return mFolder->countUnread();
110 FolderIface::unreadRecursiveMessages()
112 return mFolder->countUnreadRecursive();
150 #include "folderIface.moc"
|