digiKam
vkontakte_util.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2011-02-19
7  * Description : a tool to export images to VKontakte web service
8  *
9  * Copyright (C) 2010 by Thomas McGuire <mcguire at kde dot org>
10  * Copyright (C) 2011-2015 by Alexander Potashev <aspotashev at gmail dot com>
11  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_VKONTAKTE_UTIL_H
26 #define DIGIKAM_VKONTAKTE_UTIL_H
27 
28 // Qt includes
29 
30 #include <QDateTime>
31 #include <QStringList>
32 
33 // Local includes
34 
36 
37 namespace Vkontakte
38 {
39 
43 QDateTime unixTimeToQDateTime(const QString& unixTime);
44 
45 QStringList appPermissionsToStringList(Vkontakte::AppPermissions::Value permissions);
46 
47 QString joinIntegers(const QList<int>& list);
48 
49 } // namespace Vkontakte
50 
51 #endif // DIGIKAM_VKONTAKTE_UTIL_H