• 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::SocialFeedItem::setPostReplies
void setPostReplies(const QList< SocialFeedItem > &replies)
Sets replies/comments for this post.
Definition socialfeeditem.cpp:238
Akonadi::SocialFeedItem::postImageUrl
QUrl postImageUrl() const
Definition socialfeeditem.cpp:100
Akonadi::SocialFeedItem::setUserId
void setUserId(const QString &userId)
Sets the network user id associated with this post.
Definition socialfeeditem.cpp:148
Akonadi::SocialFeedItem::networkString
QString networkString() const
This returns the service string such as "on Facebook", "on Twitter" It's used in the feed as the firs...
Definition socialfeeditem.cpp:50
Akonadi::SocialFeedItem::userId
QString userId() const
Definition socialfeeditem.cpp:143
Akonadi::SocialFeedItem::postTimeString
QString postTimeString() const
Definition socialfeeditem.cpp:115
Akonadi::SocialFeedItem::setPostLinkTitle
void setPostLinkTitle(const QString &linkTitle)
Sets the link title the posts links to.
Definition socialfeeditem.cpp:95
Akonadi::SocialFeedItem::sharedFrom
QString sharedFrom() const
Definition socialfeeditem.cpp:183
Akonadi::SocialFeedItem::postId
QString postId() const
Definition socialfeeditem.cpp:60
Akonadi::SocialFeedItem::postInfo
QString postInfo() const
Definition socialfeeditem.cpp:120
Akonadi::SocialFeedItem::setItemSourceMap
void setItemSourceMap(const QVariantMap &itemSourceMap)
Sets the original data which was received from the network and then mapped to a QVariantMap.
Definition socialfeeditem.cpp:208
Akonadi::SocialFeedItem::setPostTime
void setPostTime(const QString &postTimeString, const QString &postTimeFormat)
Sets the time string which was received from the network together with the format which could be rece...
Definition socialfeeditem.cpp:130
Akonadi::SocialFeedItem::itemSourceMap
QVariantMap itemSourceMap() const
Definition socialfeeditem.cpp:203
Akonadi::SocialFeedItem::postTime
KDateTime postTime() const
Definition socialfeeditem.cpp:110
Akonadi::SocialFeedItem::setSharedFromId
void setSharedFromId(const QString &sharedFromId)
Sets the user id of the user this was shared from.
Definition socialfeeditem.cpp:198
Akonadi::SocialFeedItem::postLink
QUrl postLink() const
Definition socialfeeditem.cpp:80
Akonadi::SocialFeedItem::postReplies
QList< SocialFeedItem > postReplies() const
Definition socialfeeditem.cpp:233
Akonadi::SocialFeedItem::setPostImageUrl
void setPostImageUrl(const QUrl &imageUrl)
Sets the URL of an image associated with this post, it can be an image thumb, link thumb etc.
Definition socialfeeditem.cpp:105
Akonadi::SocialFeedItem::postTimeFormat
QString postTimeFormat() const
Definition socialfeeditem.cpp:138
Akonadi::SocialFeedItem::sharedFromId
QString sharedFromId() const
Definition socialfeeditem.cpp:193
Akonadi::SocialFeedItem::avatarUrl
QUrl avatarUrl() const
Definition socialfeeditem.cpp:213
Akonadi::SocialFeedItem::isShared
bool isShared() const
Definition socialfeeditem.cpp:173
Akonadi::SocialFeedItem::setSharedFrom
void setSharedFrom(const QString &sharedFrom)
Sets the display name of the user which was the original author of this post.
Definition socialfeeditem.cpp:188
Akonadi::SocialFeedItem::setNetworkString
void setNetworkString(const QString &networkString)
Sets the network string for this item.
Definition socialfeeditem.cpp:55
Akonadi::SocialFeedItem::setLiked
void setLiked(bool liked)
Sets if the user has liked/favorited the post or not.
Definition socialfeeditem.cpp:228
Akonadi::SocialFeedItem::setPostText
void setPostText(const QString &text)
Sets the post text to be displayed in the feed.
Definition socialfeeditem.cpp:75
Akonadi::SocialFeedItem::setShared
void setShared(bool shared)
Sets if this post was shared from other user.
Definition socialfeeditem.cpp:178
Akonadi::SocialFeedItem::setPostId
void setPostId(const QString &postId)
Sets the original post id.
Definition socialfeeditem.cpp:65
Akonadi::SocialFeedItem::setPostLink
void setPostLink(const QUrl &link)
Sets the link the posts links to.
Definition socialfeeditem.cpp:85
Akonadi::SocialFeedItem::isLiked
bool isLiked() const
Definition socialfeeditem.cpp:223
Akonadi::SocialFeedItem::postText
QString postText() const
Definition socialfeeditem.cpp:70
Akonadi::SocialFeedItem::postLinkTitle
QString postLinkTitle() const
Definition socialfeeditem.cpp:90
Akonadi::SocialFeedItem::userDisplayName
QString userDisplayName() const
Definition socialfeeditem.cpp:163
Akonadi::SocialFeedItem::setPostInfo
void setPostInfo(const QString &postInfo)
Sets additional info for the post, like number of comments, likes, retweed from etc.
Definition socialfeeditem.cpp:125
Akonadi::SocialFeedItem::setUserName
void setUserName(const QString &userName)
Sets the network user name associated with this post.
Definition socialfeeditem.cpp:158
Akonadi::SocialFeedItem::setAvatarUrl
void setAvatarUrl(const QUrl &url)
Sets the url of the avatar picture to be displayed next to the post in the feed.
Definition socialfeeditem.cpp:218
Akonadi::SocialFeedItem::userName
QString userName() const
Definition socialfeeditem.cpp:153
Akonadi::SocialFeedItem::setUserDisplayName
void setUserDisplayName(const QString &userDisplayName)
Sets the name to be displayed to the user (full name usually)
Definition socialfeeditem.cpp:168
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 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