• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

KBlog Client Library

livejournal_p.h
00001 /*
00002   This file is part of the kblog library.
00003 
00004   Copyright (c) 2007 Mike McQuaid <mike@mikemcquaid.com>
00005   Copyright (c) 2007 Christian Weilbach <christian_weilbach@web.de>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef LIVEJOURNAL_P_H
00024 #define LIVEJOURNAL_P_H
00025 
00026 #include "livejournal.h"
00027 #include "blog_p.h"
00028 
00029 #include <kxmlrpcclient/client.h>
00030 
00031 namespace KBlog {
00032 
00033 class LiveJournalPrivate : public BlogPrivate
00034 {
00035   public:
00036     QString mAppId;
00037     QMap<QString,QString> mCategories;
00038     KXmlRpc::Client *mXmlRpcClient;
00039     QMap<unsigned int,KBlog::BlogPost*> mCallMap;
00040     QMap<unsigned int,QString> mCallMapAddFriend;
00041     unsigned int mCallCounter;
00042     QString mServerMessage;
00043     QString mUserId;
00044     QString mFullName;
00045 
00046     LiveJournalPrivate();
00047     virtual ~LiveJournalPrivate();
00048 
00049     enum GenerateCookieOption {
00050       LongExpiriation = 0x01,
00051       FixedIP = 0x02
00052     };
00053     Q_DECLARE_FLAGS( GenerateCookieOptions, GenerateCookieOption )
00054 
00055     virtual void generateCookie( const GenerateCookieOptions &options );
00056 
00057     virtual void expireCookie( const QString &cookie, bool expireAll );
00058 
00059     virtual QMap<QString,QVariant> defaultArgs();
00060 
00061     virtual void slotAddFriend( const QList<QVariant> &result,
00062                                 const QVariant &id );
00063     virtual void slotAssignFriendToCategory( const QList<QVariant> &result,
00064                                              const QVariant &id );
00065     virtual void slotCreatePost( const QList<QVariant> &result,
00066                                  const QVariant &id );
00067     virtual void slotDeleteFriend( const QList<QVariant> &result,
00068                                    const QVariant &id );
00069 //     virtual void slotExpireCookie( const QList<QVariant> &result,
00070 //                                    const QVariant &id );
00071     virtual void slotError( int, const QString &, const QVariant & );
00072     virtual void slotFetchPost( const QList<QVariant> &result,
00073                                 const QVariant &id );
00074     virtual void slotFetchUserInfo( const QList<QVariant> &result,
00075                                     const QVariant &id );
00076 //     virtual void slotGenerateCookie( const QList<QVariant> &result,
00077 //                                      const QVariant &id );
00078     virtual void slotListCategories( const QList<QVariant> &result,
00079                                      const QVariant &id );
00080     virtual void slotListFriends( const QList<QVariant> &result,
00081                                   const QVariant &id );
00082     virtual void slotListFriendsOf( const QList<QVariant> &result,
00083                                     const QVariant &id );
00084     virtual void slotListMoods( const QList<QVariant> &result,
00085                                 const QVariant &id );
00086     virtual void slotListPictureKeywords( const QList<QVariant> &result,
00087                                           const QVariant &id );
00088     virtual void slotListRecentPosts( const QList<QVariant> &result,
00089                                       const QVariant &id );
00090     virtual void slotModifyPost( const QList<QVariant> &result,
00091                                  const QVariant &id );
00092     virtual void slotRemovePost( const QList<QVariant> &result,
00093                                  const QVariant &id );
00094     Q_DECLARE_PUBLIC( LiveJournal )
00095 
00096   private:
00097     bool readPostFromMap( BlogPost *post, const QMap<QString, QVariant> &postInfo );
00098 };
00099 
00100 }
00101 
00102 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:16:52 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KBlog Client Library

Skip menu "KBlog Client Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal