/usr/include/bodega/session_p.h is in libbodega-dev 0.2-0ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | /*
* Copyright 2012 Coherent Theory LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef SESSION_PRIVATE
#define SESSION_PRIVATE
#include "session.h"
namespace Bodega {
class InstallJobsModel;
class Session::Private {
public:
Private(Session *parent);
QByteArray jsonPath(const char *cmd, bool includeBasePath=true) const
{
QString str;
if (includeBasePath) {
str = QString::fromLatin1("%1%2")
.arg(QLatin1String("/bodega/v1/json"))
.arg(QLatin1String(cmd));
} else {
str = QLatin1String(cmd);
}
return str.toUtf8();
}
QByteArray jsonPath(const QString &str, bool includeBasePath=true) const
{
return jsonPath(str.toUtf8().constData(), includeBasePath);
}
void jobConnect(NetworkJob *job)
{
connect(job, SIGNAL(jobFinished(Bodega::NetworkJob*)),
q, SLOT(jobFinished(Bodega::NetworkJob*)));
}
void setPoints(int p);
void signOnFinished(Bodega::SignOnJob *job);
void jobFinished(Bodega::NetworkJob *job);
QNetworkReply *get(const QUrl &url);
void addPaging(QUrl &url, int offset, int pageSize);
QAbstractItemModel *historyModel();
Session *q;
QNetworkAccessManager *netManager;
QUrl baseUrl;
QString userName;
QString password;
QString storeId;
bool authenticated;
int points;
QMap<ImageUrl, QUrl> imageUrls;
InstallJobsModel *installJobsModel;
};
}
#endif
|