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

akonadi

  • akonadi
  • socialutils
socialfeeditem.h
1/*
2 Copyright (C) 2012 Martin Klapetek <martin.klapetek@gmail.com>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#ifndef AKONADI_SOCIALUTILS_SOCIALFEEDITEM_H
21#define AKONADI_SOCIALUTILS_SOCIALFEEDITEM_H
22
23#include "libakonadisocialutils_export.h"
24
25#include <QSharedPointer>
26#include <QVariant>
27#include <QUrl>
28
29class KDateTime;
30
31namespace Akonadi {
32
33class SocialFeedItemPrivate;
34
38class LIBAKONADISOCIALUTILS_EXPORT SocialFeedItem
39{
40 public:
41 SocialFeedItem();
42 SocialFeedItem( const SocialFeedItem &other );
43 ~SocialFeedItem();
44 SocialFeedItem &operator=(const SocialFeedItem &other);
45
53 QString networkString() const;
54
60 void setNetworkString( const QString &networkString );
61
65 QString postId() const;
66
72 void setPostId( const QString &postId );
73
77 QString postText() const;
78
84 void setPostText( const QString &text );
85
89 QUrl postLink() const;
90
96 void setPostLink( const QUrl &link );
97
101 QString postLinkTitle() const;
102
108 void setPostLinkTitle( const QString &linkTitle );
109
113 QUrl postImageUrl() const;
114
121 void setPostImageUrl( const QUrl &imageUrl );
122
126 QString userName() const;
127
133 void setUserName( const QString &userName );
134
138 QString userDisplayName() const;
139
145 void setUserDisplayName( const QString &userDisplayName );
146
150 QString userId() const;
151
157 void setUserId( const QString &userId );
158
162 KDateTime postTime() const;
163
171 void setPostTime( const QString &postTimeString, const QString &postTimeFormat );
172
176 QString postTimeFormat() const;
177
181 QString postTimeString() const;
182
186 QString postInfo() const;
187
194 void setPostInfo( const QString &postInfo );
195
199 bool isShared() const;
200
206 void setShared( bool shared );
207
211 QString sharedFrom() const;
212
218 void setSharedFrom( const QString &sharedFrom );
219
223 QString sharedFromId() const;
224
230 void setSharedFromId( const QString &sharedFromId );
231
237 void setLiked( bool liked );
238
242 bool isLiked() const;
243
247 QVariantMap itemSourceMap() const;
248
257 void setItemSourceMap( const QVariantMap &itemSourceMap );
258
262 QUrl avatarUrl() const;
263
269 void setAvatarUrl( const QUrl &url );
270
275 void setPostReplies( const QList<SocialFeedItem> &replies );
276
280 QList<SocialFeedItem> postReplies() const;
281
282 private:
283 QSharedDataPointer<SocialFeedItemPrivate> d;
284};
285
286}
287
288Q_DECLARE_METATYPE( Akonadi::SocialFeedItem )
289
290#endif // SOCIALFEEDITEM_H
Akonadi::SocialFeedItem
Class representing one entry in the social feed.
Definition socialfeeditem.h:39
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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