Revision 690985

Go back to digest for 29th July 2007

Other in KDE-PIM

Christian Weilbach committed changes in /trunk/KDE/kdepimlibs/kblog:

This will break almost everything and I'm sorry for that. I've tried to change the API exactly as it should be. Antonio, Mike, maybe you could help on fixing the implementation issues. We have a signal in BlogPosting::statusChanged which should be emitted in the data slots when a posting object is changed. All data in the BlogPosting object should be changed according to the data.

To get the pointer of the BlogPosting in the Slot we have to use a QMap of <QString,KBlog::BlogPosting*> in most of Blogger and MetaWeblog API, which will be used globally for every connection and removed in the slot afterwards. Simply set the QVariant id and parse it to a QString in the slot. The same approach will be done for GData using QMap<Loader*,KBlog::BlogPosting*> for every syndication loader and QMap<Job*,KBlog::BlogPosting*> for all sending.
This is only a proposal, but should work in the end. No signal parsing is necessary anymore, as the BlogPosting objects will be updatet automatically in the slot. I hope you can help.

Additionally I have changed APIBlog->username() to userId() which fits better and I need username for GData seperatly. Maybe we should parse it into APIBlog. in the kxmlrpcclient calls accordingly.

Cheers, Christian

File Changes

Modified 13 files
  • /trunk/KDE/kdepimlibs/kblog
  •   /blog.cpp
  •   /blog.h
  •   /blog_p.h
  •   /blogger.cpp
  •   /blogger.h
  •   /blogger_p.cpp
  •   /gdata.cpp
  •   /gdata.h
  •   /gdata_p.cpp
  •   /metaweblog.cpp
  •   /metaweblog.h
  •   /metaweblog_p.cpp
  •   /tests/CMakeLists.txt
13 files changed in total