[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/kmail
From: Allen Winter <winter () kde ! org>
Date: 2010-10-18 22:13:07
Message-ID: 20101018221307.D26DEAC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1187324 by winterz:
provide a new DCOP method for determining the account name from the folderpath.
for use by KOrganizer's resourceview.
kolab/issue4643
MERGE: none (thanks to akonadi)
M +6 -0 kmailicalIface.h
M +12 -0 kmailicalifaceimpl.cpp
M +1 -0 kmailicalifaceimpl.h
--- branches/kdepim/enterprise/kdepim/kmail/kmailicalIface.h #1187323:1187324
@@ -133,11 +133,17 @@
virtual int dimapAccounts() = 0;
/**
+ * Returns the pretty account name for the specified folder path.
+ */
+ virtual QString dimapFolderAccountName( const QString &folderPath ) = 0;
+
+ /**
* Causes all resource folders of the given type to be synced with the server.
*/
virtual bool triggerSync( const QString & ) = 0;
virtual void changeResourceUIName( const QString &folderPath, const QString &newName ) = 0;
+
k_dcop_signals:
void incidenceAdded( const QString& type, const QString& folder,
Q_UINT32 sernum, int format, const QString& entry );
--- branches/kdepim/enterprise/kdepim/kmail/kmailicalifaceimpl.cpp #1187323:1187324
@@ -1655,6 +1655,18 @@
return 0;
}
+QString KMailICalIfaceImpl::dimapFolderAccountName( const QString &folderPath )
+{
+ QString name;
+ KMFolder *f = findResourceFolder( folderPath );
+ if ( f ) {
+ if ( f->storage() && static_cast<const KMFolderCachedImap*>( f->storage() )->account() ) {
+ name = static_cast<const KMFolderCachedImap*>( f->storage() )->account()->name();
+ }
+ }
+ return name;
+}
+
void KMailICalIfaceImpl::changeResourceUIName( const QString &folderPath, const QString &newName )
{
kdDebug() << "Folder path " << folderPath << endl;
--- branches/kdepim/enterprise/kdepim/kmail/kmailicalifaceimpl.h #1187323:1187324
@@ -114,6 +114,7 @@
int startIndex,
int nbMessages );
int dimapAccounts();
+ QString dimapFolderAccountName( const QString &folderPath );
QValueList<SubResource> subresourcesKolab( const QString& contentsType );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic