-
Notifications
You must be signed in to change notification settings - Fork 0
/
QtVk-desktop.cpp
63 lines (49 loc) · 1.67 KB
/
QtVk-desktop.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* This is an open source non-commercial project. Dear PVS-Studio, please check it.
* PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
*
* @file QtVk-desktop.cpp
* @brief
* @details
* @date Created on 11.12.2015
* @copyright 2015 DDwarf LLC, <[email protected]>
* @author Gilmanov Ildar <[email protected]>
*/
#include "QtVk.h"
#include <QPixmap>
#include <QDebug>
// Ubuntu SDK do not have qInfo
#ifndef qInfo
#define qInfo qDebug
#endif
namespace DDwarf {
namespace Social {
void QtVk::openShareDialog(const QString &textToPost,
const QStringList &photoLinks,
const QList<QPixmap> &photos,
const QString &linkTitle,
const QString &linkUrl)
{
QString message = QString("openShareDialog: textToPost: '%1' photoLinks: ").arg(textToPost);
for(QStringList::const_iterator it = photoLinks.cbegin(); it != photoLinks.cend(); ++it)
{
message.push_back(*it);
message.push_back(", ");
}
message.push_back("photos: ");
for(QList<QPixmap>::const_iterator it = photos.cbegin(); it != photos.cend(); ++it)
{
const QPixmap &pixmap = *it;
message.push_back(QString("pixmap(%1, %2)")
.arg(pixmap.width())
.arg(pixmap.height()));
message.push_back(", ");
}
message.push_back(QString("linkTitle: '%1'' linkUrl: '%2'")
.arg(linkTitle)
.arg(linkUrl));
qInfo() << message;
qWarning() << QString("Method openShareDialog() is not implemented yet");
}
} // namespace Social
} // namespace DDwarf