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

KBlog Client Library

  • kblog
livejournal_p.h
1/*
2 This file is part of the kblog library.
3
4 Copyright (c) 2007 Mike McQuaid <mike@mikemcquaid.com>
5 Copyright (c) 2007 Christian Weilbach <christian_weilbach@web.de>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22
23#ifndef LIVEJOURNAL_P_H
24#define LIVEJOURNAL_P_H
25
26#include "livejournal.h"
27#include "blog_p.h"
28
29#include <kxmlrpcclient/client.h>
30
31namespace KBlog {
32
33class LiveJournalPrivate : public BlogPrivate
34{
35 public:
36 QString mAppId;
37 QMap<QString,QString> mCategories;
38 KXmlRpc::Client *mXmlRpcClient;
39 QMap<unsigned int,KBlog::BlogPost*> mCallMap;
40 QMap<unsigned int,QString> mCallMapAddFriend;
41 unsigned int mCallCounter;
42 QString mServerMessage;
43 QString mUserId;
44 QString mFullName;
45
46 LiveJournalPrivate();
47 virtual ~LiveJournalPrivate();
48
49 enum GenerateCookieOption {
50 LongExpiriation = 0x01,
51 FixedIP = 0x02
52 };
53 Q_DECLARE_FLAGS( GenerateCookieOptions, GenerateCookieOption )
54
55 virtual void generateCookie( const GenerateCookieOptions &options );
56
57 virtual void expireCookie( const QString &cookie, bool expireAll );
58
59 virtual QMap<QString,QVariant> defaultArgs();
60
61 virtual void slotAddFriend( const QList<QVariant> &result,
62 const QVariant &id );
63 virtual void slotAssignFriendToCategory( const QList<QVariant> &result,
64 const QVariant &id );
65 virtual void slotCreatePost( const QList<QVariant> &result,
66 const QVariant &id );
67 virtual void slotDeleteFriend( const QList<QVariant> &result,
68 const QVariant &id );
69// virtual void slotExpireCookie( const QList<QVariant> &result,
70// const QVariant &id );
71 virtual void slotError( int, const QString &, const QVariant & );
72 virtual void slotFetchPost( const QList<QVariant> &result,
73 const QVariant &id );
74 virtual void slotFetchUserInfo( const QList<QVariant> &result,
75 const QVariant &id );
76// virtual void slotGenerateCookie( const QList<QVariant> &result,
77// const QVariant &id );
78 virtual void slotListCategories( const QList<QVariant> &result,
79 const QVariant &id );
80 virtual void slotListFriends( const QList<QVariant> &result,
81 const QVariant &id );
82 virtual void slotListFriendsOf( const QList<QVariant> &result,
83 const QVariant &id );
84 virtual void slotListMoods( const QList<QVariant> &result,
85 const QVariant &id );
86 virtual void slotListPictureKeywords( const QList<QVariant> &result,
87 const QVariant &id );
88 virtual void slotListRecentPosts( const QList<QVariant> &result,
89 const QVariant &id );
90 virtual void slotModifyPost( const QList<QVariant> &result,
91 const QVariant &id );
92 virtual void slotRemovePost( const QList<QVariant> &result,
93 const QVariant &id );
94 Q_DECLARE_PUBLIC( LiveJournal )
95
96 private:
97 bool readPostFromMap( BlogPost *post, const QMap<QString, QVariant> &postInfo );
98};
99
100}
101
102#endif
KBlog
Namespace for blog related classes.
Definition: blog.h:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • 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