[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: proko2: kdepim/kresources/kolab/shared
From: Bo Thorsen <bo () sonofthor ! dk>
Date: 2004-06-29 10:26:57
Message-ID: 20040629102657.BD0119078 () office ! kde ! org
[Download RAW message or body]
CVS commit by thorsen:
When registering a new subresource, find out if it's writable or not
M +7 -1 kmailconnection.cpp 1.1.2.10
M +9 -8 resourcekolabbase.h 1.1.2.8
--- kdepim/kresources/kolab/shared/kmailconnection.cpp #1.1.2.9:1.1.2.10
@@ -140,5 +140,11 @@ void KMailConnection::fromKMailAddSubres
// kdDebug(5650) << "KMailConnection::subresourceAdded( " << type << ", "
// << resource << " )\n";
- mResource->fromKMailAddSubresource( type, resource );
+ bool writable = true;
+
+ // TODO: This should be told by KMail right away
+ if ( connectToKMail() )
+ writable = mKMailIcalIfaceStub->isWritableFolder( type, resource );
+
+ mResource->fromKMailAddSubresource( type, resource, writable );
}
--- kdepim/kresources/kolab/shared/resourcekolabbase.h #1.1.2.7:1.1.2.8
@@ -85,5 +85,6 @@ public:
const QString& resource ) = 0;
virtual void fromKMailAddSubresource( const QString& type,
- const QString& resource ) = 0;
+ const QString& resource,
+ bool writable ) = 0;
virtual void fromKMailDelSubresource( const QString& type,
const QString& resource ) = 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic