[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/pim/akonaditest/scriptableresource
From: Igor Trindade Oliveira <igor_trindade () yahoo ! com ! br>
Date: 2008-08-31 14:18:59
Message-ID: 1220192339.162791.30215.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 855341 by igorto:
add more script option to retrieveCollection callback
M +19 -0 retrievecollectionsscript.cpp
M +7 -1 retrievecollectionsscript.h
M +2 -2 scriptableresource.cpp
--- trunk/playground/pim/akonaditest/scriptableresource/retrievecollectionsscript.cpp #855340:855341
@@ -38,3 +38,22 @@
mColList = colList;
}
+void RetrieveCollectionsScript::setCollectionName(QString collectionName)
+{
+ mCollectionName = collectionName;
+}
+
+void RetrieveCollectionsScript::setCollectionPath(QString path)
+{
+ mCollectionPath = path;
+}
+
+QString RetrieveCollectionsScript::getCollectionPath()
+{
+ return mCollectionPath;
+}
+
+QString RetrieveCollectionsScript::getCollectionName()
+{
+ return mCollectionName;
+}
--- trunk/playground/pim/akonaditest/scriptableresource/retrievecollectionsscript.h #855340:855341
@@ -27,13 +27,19 @@
Q_OBJECT
private:
- QString mMimeType;
+ QString mMimeType, mCollectionName, mCollectionPath;
Akonadi::Collection::List mColList;
public slots:
void setMimeType(QString mimeType);
QString getMimeType();
+ void setCollectionName(QString collectionName);
+ void setCollectionPath(QString name);
+
+ QString getCollectionName();
+ QString getCollectionPath();
+
Akonadi::Collection::List getRetriviedCollections();
void setRetriviedCollections(Akonadi::Collection::List colList);
};
--- trunk/playground/pim/akonaditest/scriptableresource/scriptableresource.cpp #855340:855341
@@ -61,8 +61,8 @@
Akonadi::Collection c;
c.setParent( Akonadi::Collection::root() );
- //c.setRemoteId( Settings::self()->path() );
- c.setName( name() );
+ c.setRemoteId( script->getRetrieveCollectionsScript().getCollectionPath() );
+ c.setName( script->getRetrieveCollectionsScript().getCollectionName() );
QStringList mimetypes;
mimetypes.append(script->getRetrieveCollectionsScript().getMimeType());
c.setContentMimeTypes( mimetypes );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic