~osomon/webbrowser-app/empty-contextual-menu

« back to all changes in this revision

Viewing changes to src/app/webcontainer/online-accounts-cookie-store.cpp

Add online account support in the webapp container.

A new "accountProvider" command line parameter has been added to allow one to specify an account provider for the specific webapp launch. When used, one can specify a given provider, e.g. "facebook", to pull existing accounts (if any) from the specified provider
from Online Accounts.

When the provider does not have any existing account, an option to delegate the creation of such an account to OA is provided. It is also possible to skip the step and go straight to the target url.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2013 Canonical Ltd.
 
2
 * Copyright 2013-2014 Canonical Ltd.
3
3
 *
4
4
 * This file is part of webbrowser-app.
5
5
 *
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
18
 
19
 
#include "onlineaccountscookiestore.h"
 
19
#include "online-accounts-cookie-store.h"
20
20
 
21
21
#include <QList>
22
22
#include <QVariant>
44
44
#   define ONLINE_ACCOUNTS_COOKIE_STORE_METHOD "cookiesForIdentity"
45
45
#endif
46
46
 
47
 
class OnlineAccountsCookieStorePrivate : public QObject
 
47
class OnlineAccountsCookieStorePrivate
48
48
{
49
 
    Q_OBJECT
50
 
 
51
49
public:
52
 
    OnlineAccountsCookieStorePrivate (QObject * parent = 0)
53
 
        : QObject(parent),
54
 
          _id (0),
55
 
          m_connection (QDBusConnection::sessionBus())
 
50
    OnlineAccountsCookieStorePrivate():
 
51
        _id(0),
 
52
        m_connection(QDBusConnection::sessionBus())
56
53
    {}
57
54
 
58
55
    quint32 _id;
135
132
    return qdbus_cast<Cookies>(arguments.front());
136
133
}
137
134
 
138
 
void OnlineAccountsCookieStore::doSetCookies(Cookies cookies)
 
135
bool OnlineAccountsCookieStore::doSetCookies(const Cookies& cookies)
139
136
{
140
137
    Q_UNUSED(cookies);
 
138
    return false;
141
139
}
142
 
 
143
 
#include "onlineaccountscookiestore.moc"