TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
2.0 KiB

  1. /*
  2. This file is part of tdepim.
  3. Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef API_BLOGGER_H
  18. #define API_BLOGGER_H
  19. #include "API_Blog.h"
  20. #include <tqstring.h>
  21. #include <tqvariant.h>
  22. #include <tqvaluelist.h>
  23. namespace KBlog {
  24. class APIBlogger : public APIBlog
  25. {
  26. public:
  27. APIBlogger( const KURL &server, TQObject *parent = 0L, const char *name = 0L ) : APIBlog( server, parent, name ) {}
  28. TQString getFunctionName( blogFunctions type );
  29. TQString interfaceName() const { return "Blogger API 1.0"; }
  30. TDEIO::Job *createUserInfoJob();
  31. TDEIO::Job *createListFoldersJob();
  32. TDEIO::TransferJob *createListItemsJob( const KURL &url );
  33. TDEIO::TransferJob *createDownloadJob( const KURL &url );
  34. TDEIO::TransferJob *createUploadJob( const KURL &url, KBlog::BlogPosting *posting );
  35. TDEIO::TransferJob *createUploadNewJob( KBlog::BlogPosting *posting );
  36. TDEIO::Job *createRemoveJob( const KURL &url, const TQString &postid );
  37. bool interpretUserInfoJob( TDEIO::Job *job );
  38. void interpretListFoldersJob( TDEIO::Job *job );
  39. bool interpretListItemsJob( TDEIO::Job *job );
  40. bool interpretDownloadItemsJob( TDEIO::Job *job );
  41. protected:
  42. bool readPostingFromMap( BlogPosting *post, const TQStringVariantMap &postInfo );
  43. };
  44. }
  45. #endif