Warning: That file was not part of the compilation database. It may have many parsing errors.
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 | |
31 | namespace KBlog { |
32 | |
33 | class 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 |
103 |
Warning: That file was not part of the compilation database. It may have many parsing errors.