ubuntu-system-settings-online-accounts-0.3+14.04.20140328/0000755000015201777760000000000012315270412023552 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/click-hooks/0000755000015201777760000000000012315270412025760 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/click-hooks/click-hooks.pro0000644000015201777760000000037512315270143030716 0ustar pbusernogroup00000000000000include(../common-project-config.pri) TEMPLATE = aux hooks.files = \ account-application.hook \ account-provider.hook \ account-qml-plugin.hook \ account-service.hook hooks.path = $${INSTALL_PREFIX}/share/click/hooks INSTALLS += hooks ubuntu-system-settings-online-accounts-0.3+14.04.20140328/click-hooks/account-application.hook0000644000015201777760000000012612315270143032577 0ustar pbusernogroup00000000000000User-Level: yes Pattern: ${home}/.local/share/accounts/applications/${id}.application ubuntu-system-settings-online-accounts-0.3+14.04.20140328/click-hooks/account-service.hook0000644000015201777760000000012412315270143031732 0ustar pbusernogroup00000000000000Pattern: ${home}/.local/share/accounts/services/${short-id}.service User-Level: yes ubuntu-system-settings-online-accounts-0.3+14.04.20140328/click-hooks/account-qml-plugin.hook0000644000015201777760000000011712315270143032361 0ustar pbusernogroup00000000000000Pattern: ${home}/.local/share/accounts/qml-plugins/${short-id} User-Level: yes ubuntu-system-settings-online-accounts-0.3+14.04.20140328/click-hooks/account-provider.hook0000644000015201777760000000012612315270143032126 0ustar pbusernogroup00000000000000Pattern: ${home}/.local/share/accounts/providers/${short-id}.provider User-Level: yes ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/0000755000015201777760000000000012315270412024714 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/0000755000015201777760000000000012315270412026734 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/autopilot.pro0000644000015201777760000000026512315270143031502 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) TEMPLATE = aux autopilot.path = $${INSTALL_PREFIX}/lib/python2.7/dist-packages/ autopilot.files = online_accounts_ui INSTALLS = autopilot ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/0000755000015201777760000000000012315270412032614 5ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000015100000000000011212 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/__init__.pyubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/__init_0000644000015201777760000000000012315270143034126 0ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/tests/0000755000015201777760000000000012315270412033756 5ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000015700000000000011220 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/tests/__init__.pyubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/tests/_0000644000015201777760000000000012315270143034106 0ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000017600000000000011221 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/tests/test_online_accounts_ui.pyubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/tests/t0000644000015201777760000004566212315270143034162 0ustar pbusernogroup00000000000000#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Canonical Ltd. # Contact: Alberto Mardegan # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Software Foundation. from autopilot.testcase import AutopilotTestCase from autopilot.input import Mouse, Touch, Pointer from autopilot.platform import model from autopilot.matchers import Eventually from testtools.matchers import Contains, Equals, NotEquals, GreaterThan from time import sleep import BaseHTTPServer, SimpleHTTPServer, SocketServer, ssl, cgi import threading import oauth.oauth as oauth from online_accounts_ui.emulators.items import EmulatorBase REQUEST_TOKEN_URL = 'http://localhost:5121/oauth1/request_token' ACCESS_TOKEN_URL = 'http://localhost:5121/oauth1/access_token' AUTHORIZATION_URL = 'http://localhost:5121/oauth1/authorize' CALLBACK_URL = 'http://localhost:5121/success.html' REALM = 'http://photos.example.net/' VERIFIER = 'verifier' class MockOAuthDataStore(oauth.OAuthDataStore): def __init__(self): self.consumer = oauth.OAuthConsumer('C0nsum3rKey', 'C0nsum3rS3cr3t') self.request_token = oauth.OAuthToken('requestkey', 'requestsecret') self.access_token = oauth.OAuthToken('accesskey', 'accesssecret') self.nonce = 'nonce' self.verifier = VERIFIER def lookup_consumer(self, key): if key == self.consumer.key: return self.consumer return None def lookup_token(self, token_type, token): token_attrib = getattr(self, '%s_token' % token_type) if token == token_attrib.key: ## HACK token_attrib.set_callback(CALLBACK_URL) return token_attrib return None def lookup_nonce(self, oauth_consumer, oauth_token, nonce): if oauth_token and oauth_consumer.key == self.consumer.key and (oauth_token.key == self.request_token.key or oauth_token.key == self.access_token.key) and nonce == self.nonce: return self.nonce return None def fetch_request_token(self, oauth_consumer, oauth_callback): if oauth_consumer.key == self.consumer.key: if oauth_callback: # want to check here if callback is sensible # for mock store, we assume it is self.request_token.set_callback(oauth_callback) return self.request_token return None def fetch_access_token(self, oauth_consumer, oauth_token, oauth_verifier): if oauth_consumer.key == self.consumer.key and oauth_token.key == self.request_token.key and oauth_verifier == self.verifier: # want to check here if token is authorized # for mock store, we assume it is return self.access_token return None def authorize_request_token(self, oauth_token, user): if oauth_token.key == self.request_token.key: # authorize the request token in the store # for mock store, do nothing self.access_token.username = user return self.request_token return None class OAuth1Handler(BaseHTTPServer.BaseHTTPRequestHandler): def __init__(self, *args, **kwargs): BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs) def do_HEAD(self): self.send_response(200) self.send_header("Content-type", "text/html") s.end_headers() def do_GET(self): print "Got GET to %s. headers: %s" % (self.path, self.headers) if self.path.startswith('/oauth1/authorize'): oauth_request = oauth.OAuthRequest.from_request(self.command, 'http://localhost:%s%s' % (self.server.server_port, self.path), headers=self.headers) # get the request token self.server.token = self.server.oauth_server.fetch_request_token(oauth_request) self.send_response(200) self.send_header("Content-type", "text/html") self.send_header('Content-Encoding', 'utf-8') self.end_headers() self.wfile.write(""" Login here

Login form

Username:

""" % { 'port': self.server.server_port }) self.server.show_login_event.set() def do_POST(self): if self.path == '/login.html': form = cgi.FieldStorage( fp=self.rfile, headers=self.headers, environ={'REQUEST_METHOD':'POST', 'CONTENT_TYPE':self.headers['Content-Type'], }) # authorize the token token = self.server.oauth_server.authorize_token(self.server.token, form['username'].value) token.set_verifier(VERIFIER) self.send_response(301) self.send_header("Location", token.get_callback_url()) self.end_headers() self.server.login_done_event.set() return # construct the oauth request from the request parameters length = int(self.headers.getheader('content-length')) postdata = self.rfile.read(length) oauth_request = oauth.OAuthRequest.from_request(self.command, 'http://localhost:%s%s' % (self.server.server_port, self.path), headers=self.headers, query_string=postdata) if self.path == '/oauth1/request_token': # create a request token token = self.server.oauth_server.fetch_request_token(oauth_request) # send okay response self.send_response(200, 'OK') self.send_header('Content-Type', 'application/x-www-form-urlencoded') self.end_headers() # return the token self.wfile.write(token.to_string()) elif self.path == '/oauth1/access_token': # create an access token token = self.server.oauth_server.fetch_access_token(oauth_request) # send okay response self.send_response(200, 'OK') self.send_header('Content-Type', 'application/x-www-form-urlencoded') self.end_headers() # return the token self.wfile.write('%s&ScreenName=%s' % (token.to_string(), token.username)) class OAuth1LocalServer: def __init__(self): self.PORT = 5121 self.handler = OAuth1Handler self.httpd = BaseHTTPServer.HTTPServer(('localhost', self.PORT), self.handler) self.httpd.oauth_server = oauth.OAuthServer(MockOAuthDataStore()) self.httpd.oauth_server.add_signature_method(oauth.OAuthSignatureMethod_PLAINTEXT()) self.httpd.oauth_server.add_signature_method(oauth.OAuthSignatureMethod_HMAC_SHA1()) self.httpd.show_login_event = threading.Event() self.httpd.login_done_event = threading.Event() self.httpd_thread = threading.Thread(target=self.httpd.serve_forever) def run(self): self.httpd_thread.setDaemon(True) self.httpd_thread.start() class Handler(BaseHTTPServer.BaseHTTPRequestHandler): def do_HEAD(self): self.send_response(200) self.send_header("Content-type", "text/html") s.end_headers() def do_GET(self): self.send_response(200) self.send_header("Content-type", "text/html") self.send_header('Content-Encoding', 'utf-8') self.end_headers() self.wfile.write(""" Login here

Login form

Username:
Password:

""" % { 'port': self.server.server_port }) self.server.show_login_event.set() def do_POST(self): form = cgi.FieldStorage( fp=self.rfile, headers=self.headers, environ={'REQUEST_METHOD':'POST', 'CONTENT_TYPE':self.headers['Content-Type'], }) self.send_response(301) self.send_header("Location", "https://localhost:%(port)s/success.html#access_token=%(username)s%(password)s&expires_in=3600" % { 'port': self.server.server_port, 'username': form['username'].value, 'password': form['password'].value }) self.end_headers() self.server.login_done_event.set() class LocalServer: def __init__(self): self.PORT = 5120 #self.handler = SimpleHTTPServer.SimpleHTTPRequestHandler self.handler = Handler self.httpd = BaseHTTPServer.HTTPServer(("localhost", self.PORT), self.handler) self.httpd.show_login_event = threading.Event() self.httpd.login_done_event = threading.Event() self.httpd.socket = ssl.wrap_socket (self.httpd.socket, certfile='/etc/ssl/certs/uoa-test-server.pem', server_side=True) self.httpd_thread = threading.Thread(target=self.httpd.serve_forever) def run(self): self.httpd_thread.setDaemon(True) self.httpd_thread.start() class OnlineAccountsUiTests(AutopilotTestCase): if model() == 'Desktop': scenarios = [ ('with mouse', dict(input_device_class=Mouse)), ] else: scenarios = [ ('with touch', dict(input_device_class=Touch)), ] def setUp(self): super(OnlineAccountsUiTests, self).setUp() # On the phone, this fails because of https://bugs.launchpad.net/bugs/1252294 if model() != 'Desktop': return self.pointer = Pointer(self.input_device_class.create()) self.app = self.launch_test_application('system-settings', 'online-accounts', '--desktop_file_hint=/usr/share/applications/ubuntu-system-settings.desktop', app_type='qt', emulator_base=EmulatorBase, capture_output=True) self.window = self.app.select_single("QQuickView") self.assertThat(self.window.visible, Eventually(Equals(True))) def test_title(self): """ Checks whether the Online Accounts window title is correct """ # On the phone, this fails because of https://bugs.launchpad.net/bugs/1252294 if model() != 'Desktop': return header = self.window.select_single('Header', visible=True) self.assertThat(header, NotEquals(None)) self.assertThat(header.title, Eventually(Equals('Accounts'))) def test_available_providers(self): """ Checks whether all the expected providers are available """ # On the phone, this fails because of https://bugs.launchpad.net/bugs/1252294 if model() != 'Desktop': return required_providers = [ 'FakeOAuth', ] for provider in required_providers: provider_item = self.app.select_single('Standard', text=provider) self.assertThat(provider_item, NotEquals(None)) def test_create_oauth1_account(self): """ Test the creation of an OAuth 1.0 account """ # On the phone, this fails because of https://bugs.launchpad.net/bugs/1231968 if model() != 'Desktop': return server = OAuth1LocalServer() server.run() page = self.app.select_single('NoAccountsPage') self.assertThat(page, NotEquals(None)) provider_item = self.app.select_single('Standard', text='FakeOAuthOne') self.assertThat(provider_item, NotEquals(None)) # Depending on the number of installed providers, it may be that our # test provider is not visible; in that case, scroll the page self.pointer.move_to_object(page) (page_center_x, page_center_y) = self.pointer.position() page_bottom = page.globalRect[1] + page.globalRect[3] while provider_item.center[1] > page_bottom: self.pointer.move(page_center_x, page_center_y) self.pointer.press() self.pointer.move(page_center_x, page_center_y - provider_item.height * 2) # wait some time before releasing, to avoid a flick sleep(0.2) self.pointer.release() self.pointer.move_to_object(provider_item) self.pointer.click() # At this point, the signon-ui process should be spawned by D-Bus and # try to connect to our local webserver. # Here we wait until we know that the webserver has served the login page: server.httpd.show_login_event.wait(30) self.assertThat(server.httpd.show_login_event.is_set(), Equals(True)) server.httpd.show_login_event.clear() # Give some time to signon-ui to render the page sleep(2) #self.signon_ui_window = self.signon_ui.select_single("QQuickView") #self.assertThat(self.signon_ui_window.visible, Eventually(Equals(True))) # Move to the username field self.keyboard.press_and_release('Tab') self.keyboard.type('funnyguy') self.keyboard.press_and_release('Enter') # At this point signon-ui should make a post request with the login # data; let's wait for it: server.httpd.login_done_event.wait(30) self.assertThat(server.httpd.login_done_event.is_set(), Equals(True)) server.httpd.login_done_event.clear() if model() == 'Desktop': # Close the signon-ui window self.keyboard.press_and_release('Enter') # The account should be created shortly sleep(5) account_item = self.app.select_single('AccountItem', text='FakeOAuthOne') self.assertThat(account_item, NotEquals(None)) self.assertThat(account_item.subText, Equals('funnyguy')) # Delete it self.pointer.move_to_object(account_item) self.pointer.click() sleep(1) edit_page = self.app.select_single('AccountEditPage') self.assertThat(edit_page, NotEquals(None)) remove_button = edit_page.select_single('Button') self.assertThat(remove_button, NotEquals(None)) self.pointer.move_to_object(remove_button) self.pointer.click() sleep(1) removal_page = self.app.select_single('RemovalConfirmation') self.assertThat(removal_page, NotEquals(None)) remove_button = removal_page.select_single('Button', text='Remove') self.assertThat(remove_button, NotEquals(None)) self.pointer.move_to_object(remove_button) self.pointer.click() # Check that the account has been deleted sleep(1) account_item = self.app.select_single('AccountItem', text='FakeOAuth') self.assertThat(account_item, Equals(None)) def test_create_oauth2_account(self): """ Test the creation of an OAuth 2.0 account """ # WebKit2 cannot ignore SSL errors, so this test fails on the phone if model() != 'Desktop': return self.server = LocalServer() self.server.run() page = self.app.select_single('NoAccountsPage') self.assertThat(page, NotEquals(None)) provider_item = self.app.select_single('Standard', text='FakeOAuth') self.assertThat(provider_item, NotEquals(None)) # Depending on the number of installed providers, it may be that our # test provider is not visible; in that case, scroll the page self.pointer.move_to_object(page) (page_center_x, page_center_y) = self.pointer.position() page_bottom = page.globalRect[1] + page.globalRect[3] while provider_item.center[1] > page_bottom: self.pointer.move(page_center_x, page_center_y) self.pointer.press() self.pointer.move(page_center_x, page_center_y - provider_item.height * 2) # wait some time before releasing, to avoid a flick sleep(0.2) self.pointer.release() self.pointer.move_to_object(provider_item) self.pointer.click() # At this point, the signon-ui process should be spawned by D-Bus and # try to connect to our local webserver. # Here we wait until we know that the webserver has served the login page: self.server.httpd.show_login_event.wait(30) self.assertThat(self.server.httpd.show_login_event.is_set(), Equals(True)) self.server.httpd.show_login_event.clear() # Give some time to signon-ui to render the page sleep(2) #self.signon_ui_window = self.signon_ui.select_single("QQuickView") #self.assertThat(self.signon_ui_window.visible, Eventually(Equals(True))) # Move to the username field self.keyboard.press_and_release('Tab') self.keyboard.type('john') self.keyboard.press_and_release('Tab') self.keyboard.type('loser') self.keyboard.press_and_release('Enter') # At this point signon-ui should make a post request with the login # data; let's wait for it: self.server.httpd.login_done_event.wait(30) self.assertThat(self.server.httpd.login_done_event.is_set(), Equals(True)) self.server.httpd.login_done_event.clear() if model() == 'Desktop': # Close the signon-ui window self.keyboard.press_and_release('Enter') # The account should be created shortly sleep(5) account_item = self.app.select_single('AccountItem', text='FakeOAuth') self.assertThat(account_item, NotEquals(None)) self.assertThat(account_item.subText, Equals('john')) # Delete it self.pointer.move_to_object(account_item) self.pointer.click() sleep(1) edit_page = self.app.select_single('AccountEditPage') self.assertThat(edit_page, NotEquals(None)) remove_button = edit_page.select_single('Button') self.assertThat(remove_button, NotEquals(None)) self.pointer.move_to_object(remove_button) self.pointer.click() sleep(1) removal_page = self.app.select_single('RemovalConfirmation') self.assertThat(removal_page, NotEquals(None)) remove_button = removal_page.select_single('Button', text='Remove') self.assertThat(remove_button, NotEquals(None)) self.pointer.move_to_object(remove_button) self.pointer.click() # Check that the account has been deleted sleep(1) account_item = self.app.select_single('AccountItem', text='FakeOAuth') self.assertThat(account_item, Equals(None)) ././@LongLink0000000000000000000000000000015000000000000011211 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/emulators/ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/emulato0000755000015201777760000000000012315270412034203 5ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000016300000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/emulators/__init__.pyubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/emulato0000644000015201777760000000000012315270143034174 0ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000016000000000000011212 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/emulators/items.pyubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/autopilot/online_accounts_ui/emulato0000644000015201777760000000114112315270143034203 0ustar pbusernogroup00000000000000#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Canonical Ltd. # Contact: Alberto Mardegan # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Software Foundation. from autopilot.introspection import CustomEmulatorBase class EmulatorBase(CustomEmulatorBase): """A base class for all emulators within this test suite.""" @property def center(self): (x, y, w, h) = self.globalRect return (x + w / 2, y + h / 2) ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/tests.pro0000644000015201777760000000012312315270143026575 0ustar pbusernogroup00000000000000TEMPLATE = subdirs SUBDIRS = \ autopilot \ client \ online-accounts-ui ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/0000755000015201777760000000000012315270412030430 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_service.cpp0000644000015201777760000002103312315270143033466 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "globals.h" #include "request.h" #include "service.h" #include "window-watcher.h" #include #include #include #include #include #include #include #include #include #include #include using namespace OnlineAccountsUi; static const QString keyTimeout(QStringLiteral("timeout")); static const QString keyFail(QStringLiteral("fail")); #define P2P_SOCKET "unix:path=/tmp/tst_service_%1" #define TEST_SERVICE_NAME \ QStringLiteral("com.canonical.OnlineAccountsUi.Test") #define TEST_OBJECT_PATH QStringLiteral("/") class TestRequest: public Request { Q_OBJECT public: TestRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent = 0): Request(connection, message, parameters, parent) { m_timer.setSingleShot(true); m_timer.setInterval(parameters.value(keyTimeout).toInt()); QObject::connect(&m_timer, SIGNAL(timeout()), this, SLOT(onTimeout())); } void start() Q_DECL_OVERRIDE { Request::start(); QWindow *window = new QWindow; setWindow(window); m_timer.start(); } private Q_SLOTS: void onTimeout() { if (parameters().contains(keyFail)) { fail(parameters().value(keyFail).toString(), "Request failed"); } else { setResult(parameters()); } } private: QTimer m_timer; }; Request *Request::newRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent) { return new TestRequest(connection, message, parameters, parent); } class RequestReply: public QDBusPendingCallWatcher { Q_OBJECT public: RequestReply(const QDBusPendingCall &call, QObject *parent = 0): QDBusPendingCallWatcher(call, parent), m_isError(false) { QObject::connect(this, SIGNAL(finished(QDBusPendingCallWatcher*)), this, SLOT(onFinished())); } bool isError() const { return m_isError; } QVariantMap reply() const { return m_reply; } QString errorName() const { return m_errorName; } private Q_SLOTS: void onFinished() { QDBusPendingReply reply = *this; if (reply.isError()) { m_isError = true; m_errorName = reply.error().name(); } else { m_reply = qdbus_cast(reply.argumentAt(0). value()); } Q_EMIT finished(); } Q_SIGNALS: void finished(); private: bool m_isError; QVariantMap m_reply; QString m_errorName; }; class ServiceTest: public QObject { Q_OBJECT public: ServiceTest(); private: RequestReply *sendRequest(const QVariantMap ¶meters) { QDBusMessage msg = QDBusMessage::createMethodCall(TEST_SERVICE_NAME, TEST_OBJECT_PATH, "com.canonical.OnlineAccountsUi", "requestAccess"); msg.setArguments(QVariantList() << parameters); QDBusPendingCall call = m_connection.asyncCall(msg); return new RequestReply(call, this); } private Q_SLOTS: void initTestCase(); void testResults(); void testFailure(); void testIdle(); void testWindow(); void testWindowTransiency(); protected Q_SLOTS: void onNewConnection(const QDBusConnection &connection); private: Service m_service; QDBusConnection m_connection; }; ServiceTest::ServiceTest(): QObject(0), m_connection(QStringLiteral("uninitialized")) { } void ServiceTest::onNewConnection(const QDBusConnection &connection) { QDBusConnection conn(connection); conn.registerService(TEST_SERVICE_NAME); conn.registerObject(TEST_OBJECT_PATH, &m_service); } void ServiceTest::initTestCase() { QDBusServer *server; for (int i = 0; i < 10; i++) { server = new QDBusServer(QString::fromLatin1(P2P_SOCKET).arg(i), this); if (!server->isConnected()) { delete server; } else { break; } } QVERIFY(server->isConnected()); QObject::connect(server, SIGNAL(newConnection(const QDBusConnection &)), this, SLOT(onNewConnection(const QDBusConnection &))); m_connection = QDBusConnection::connectToPeer(server->address(), QStringLiteral("tst")); QTest::qWait(10); QVERIFY(m_connection.isConnected()); } void ServiceTest::testResults() { QVariantMap parameters; parameters.insert(keyTimeout, 10); parameters.insert("hello", QString("world")); RequestReply *call = sendRequest(parameters); QSignalSpy callFinished(call, SIGNAL(finished())); QVERIFY(callFinished.wait()); QCOMPARE(call->isError(), false); QCOMPARE(call->reply(), parameters); delete call; } void ServiceTest::testFailure() { QString errorName("com.canonical.OnlineAccountsUi.BadLuck"); QVariantMap parameters; parameters.insert(keyTimeout, 10); parameters.insert("fail", errorName); RequestReply *call = sendRequest(parameters); QSignalSpy callFinished(call, SIGNAL(finished())); QVERIFY(callFinished.wait()); QCOMPARE(call->isError(), true); QCOMPARE(call->errorName(), errorName); delete call; } void ServiceTest::testIdle() { QCOMPARE(m_service.isIdle(), true); QSignalSpy isIdleChanged(&m_service, SIGNAL(isIdleChanged())); QVariantMap parameters; parameters.insert(keyTimeout, 10); RequestReply *call = sendRequest(parameters); QSignalSpy callFinished(call, SIGNAL(finished())); QVERIFY(isIdleChanged.wait()); QCOMPARE(m_service.isIdle(), false); /* the request will terminate after 10 milliseconds, so expect the service * to be idle again */ QVERIFY(isIdleChanged.wait()); QCOMPARE(m_service.isIdle(), true); QVERIFY(callFinished.wait()); QCOMPARE(call->isError(), false); delete call; } void ServiceTest::testWindow() { QVariantMap parameters; parameters.insert(keyTimeout, 10); RequestReply *call = sendRequest(parameters); QSignalSpy callFinished(call, SIGNAL(finished())); QSignalSpy windowShown(WindowWatcher::instance(), SIGNAL(windowShown(QObject*))); QVERIFY(windowShown.wait()); QWindow *window = qobject_cast(windowShown.at(0).at(0).value()); QVERIFY(window->property("transientParent").isNull()); QVERIFY(callFinished.wait()); QCOMPARE(call->isError(), false); delete call; QCOMPARE(windowShown.count(), 1); } void ServiceTest::testWindowTransiency() { QVariantMap parameters; parameters.insert(keyTimeout, 10); parameters.insert(OAU_KEY_WINDOW_ID, 371); RequestReply *call = sendRequest(parameters); QSignalSpy callFinished(call, SIGNAL(finished())); QSignalSpy windowShown(WindowWatcher::instance(), SIGNAL(windowShown(QObject*))); QVERIFY(windowShown.wait()); QWindow *window = qobject_cast(windowShown.at(0).at(0).value()); QObject *transientParentObject = window->property("transientParent").value(); QWindow *transientParent = qobject_cast(transientParentObject); QCOMPARE(transientParent->property("winId").toUInt(), uint(371)); QVERIFY(callFinished.wait()); QCOMPARE(call->isError(), false); delete call; QCOMPARE(windowShown.count(), 1); } QTEST_MAIN(ServiceTest); #include "tst_service.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_service.pro0000644000015201777760000000130312315270143033502 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) TARGET = tst_service CONFIG += \ debug QT += \ core \ dbus \ testlib DEFINES += \ NO_REQUEST_FACTORY SOURCES += \ $${TOP_BUILD_DIR}/src/onlineaccountsui_adaptor.cpp \ $${TOP_SRC_DIR}/src/request.cpp \ $${TOP_SRC_DIR}/src/service.cpp \ mock/qwindow.cpp \ tst_service.cpp HEADERS += \ $${TOP_BUILD_DIR}/src/onlineaccountsui_adaptor.h \ $${TOP_SRC_DIR}/src/request.h \ $${TOP_SRC_DIR}/src/service.h \ window-watcher.h INCLUDEPATH += \ $${TOP_SRC_DIR}/src check.commands = "xvfb-run -s '-screen 0 640x480x24' -a dbus-test-runner -t ./$${TARGET}" check.depends = $${TARGET} QMAKE_EXTRA_TARGETS += check ././@LongLink0000000000000000000000000000015000000000000011211 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_access_model.proubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_access_model.0000644000015201777760000000133112315270143033743 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) TARGET = tst_access_model CONFIG += \ debug \ link_pkgconfig QT += \ core \ dbus \ qml \ testlib PKGCONFIG += \ accounts-qt5 DEFINES += \ DEBUG_ENABLED \ TEST_DATA_DIR=\\\"$${PWD}/data\\\" SOURCES += \ $${TOP_SRC_DIR}/src/access-model.cpp \ $${TOP_SRC_DIR}/src/account-manager.cpp \ $${TOP_SRC_DIR}/src/debug.cpp \ tst_access_model.cpp HEADERS += \ $${TOP_SRC_DIR}/src/access-model.h \ $${TOP_SRC_DIR}/src/account-manager.h \ $${TOP_SRC_DIR}/src/debug.h INCLUDEPATH += \ $${TOP_SRC_DIR}/src check.commands = "xvfb-run -a dbus-test-runner -t ./$${TARGET}" check.depends = $${TARGET} QMAKE_EXTRA_TARGETS += check ././@LongLink0000000000000000000000000000015400000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_inactivity_timer.cppubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_inactivity_ti0000644000015201777760000000552212315270143034131 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "inactivity-timer.h" #include #include #include using namespace OnlineAccountsUi; class Service: public QObject { Q_OBJECT Q_PROPERTY(bool isIdle READ isIdle NOTIFY isIdleChanged) public: Service(): QObject(), m_isIdle(true) {} bool isIdle() const { return m_isIdle; } void setIdle(bool idle) { if (idle == m_isIdle) return; m_isIdle = idle; Q_EMIT isIdleChanged(); } Q_SIGNALS: void isIdleChanged(); private: bool m_isIdle; }; class InactivityTimerTest: public QObject { Q_OBJECT public: InactivityTimerTest(); private Q_SLOTS: void testAlwaysIdle(); void testBecomeIdle(); void testManyServices(); }; InactivityTimerTest::InactivityTimerTest(): QObject(0) { } void InactivityTimerTest::testAlwaysIdle() { InactivityTimer timer(10); QSignalSpy timeout(&timer, SIGNAL(timeout())); Service service; timer.watchObject(&service); QVERIFY(timeout.wait(100)); } void InactivityTimerTest::testBecomeIdle() { InactivityTimer timer(10); QSignalSpy timeout(&timer, SIGNAL(timeout())); Service service; service.setIdle(false); timer.watchObject(&service); /* No signal should be emitted, as the service is not idle */ QVERIFY(!timeout.wait(100)); service.setIdle(true); QVERIFY(timeout.wait(100)); } void InactivityTimerTest::testManyServices() { InactivityTimer timer(50); QSignalSpy timeout(&timer, SIGNAL(timeout())); Service service1; timer.watchObject(&service1); Service service2; timer.watchObject(&service2); Service service3; service3.setIdle(false); timer.watchObject(&service3); /* No signal should be emitted, as service3 is not idle */ QVERIFY(!timeout.wait(100)); /* Now set it is as idle, but soon afterwards set service1 as busy */ service3.setIdle(true); QTest::qWait(10); service1.setIdle(false); QVERIFY(!timeout.wait(100)); service1.setIdle(true); QVERIFY(timeout.wait(100)); } QTEST_MAIN(InactivityTimerTest); #include "tst_inactivity_timer.moc" ././@LongLink0000000000000000000000000000015000000000000011211 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_access_model.cppubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_access_model.0000644000015201777760000002036712315270143033755 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "access-model.h" #include "debug.h" #include #include #include #include #include #include #include #include #include #include using namespace OnlineAccountsUi; class AccessModelTest: public QObject { Q_OBJECT public: AccessModelTest(); private Q_SLOTS: void initTestCase(); void testEmpty(); void testProxy(); void testEnabling(); private: void clearDb(); }; AccessModelTest::AccessModelTest(): QObject(0) { setLoggingLevel(2); } void AccessModelTest::clearDb() { QDir dbroot(QString::fromLatin1(qgetenv("ACCOUNTS"))); dbroot.remove("accounts.db"); } void AccessModelTest::initTestCase() { qputenv("ACCOUNTS", "/tmp/"); qputenv("AG_APPLICATIONS", TEST_DATA_DIR); qputenv("AG_SERVICES", TEST_DATA_DIR); qputenv("AG_SERVICE_TYPES", TEST_DATA_DIR); qputenv("AG_PROVIDERS", TEST_DATA_DIR); qputenv("XDG_DATA_HOME", TEST_DATA_DIR); clearDb(); } void AccessModelTest::testEmpty() { QQmlEngine engine; QQmlComponent component(&engine); component.setData("import Ubuntu.OnlineAccounts 0.1\n" "AccountServiceModel {\n" " provider: \"cool\"\n" " service: \"global\"\n" "}", QUrl()); QAbstractListModel *accountModel = qobject_cast(component.create()); QVERIFY(accountModel != 0); QCOMPARE(accountModel->property("count").toInt(), 0); /* Create the access model */ AccessModel *model = new AccessModel(this); QVERIFY(model != 0); QCOMPARE(model->lastItemText(), QString()); QCOMPARE(model->applicationId(), QString()); QVERIFY(model->accountModel() == 0); model->setLastItemText("hello"); QCOMPARE(model->lastItemText(), QString("hello")); QCOMPARE(model->rowCount(), 1); QCOMPARE(model->get(0, "displayName").toString(), QString("hello")); model->setAccountModel(accountModel); QCOMPARE(model->rowCount(), 1); delete model; delete accountModel; } void AccessModelTest::testProxy() { QQmlEngine engine; QQmlComponent component(&engine); component.setData("import Ubuntu.OnlineAccounts 0.1\n" "AccountServiceModel {\n" " provider: \"cool\"\n" " service: \"global\"\n" "}", QUrl()); QAbstractListModel *accountModel = qobject_cast(component.create()); QVERIFY(accountModel != 0); QCOMPARE(accountModel->property("count").toInt(), 0); /* Create the access model */ AccessModel *model = new AccessModel(this); QVERIFY(model != 0); model->setLastItemText("hello"); model->setAccountModel(accountModel); model->setApplicationId("mailer"); QCOMPARE(model->rowCount(), 1); /* Now add and remove accounts, and see that the accessModel picks them up */ QSignalSpy rowsInserted(model, SIGNAL(rowsInserted(const QModelIndex&,int,int))); QSignalSpy rowsRemoved(model, SIGNAL(rowsRemoved(const QModelIndex&,int,int))); Accounts::Manager *manager = new Accounts::Manager(this); Accounts::Account *account1 = manager->createAccount("cool"); QVERIFY(account1 != 0); account1->setEnabled(true); account1->setDisplayName("CoolAccount"); account1->syncAndBlock(); rowsInserted.wait(); QCOMPARE(model->rowCount(), 2); QCOMPARE(rowsInserted.count(), 1); QCOMPARE(rowsRemoved.count(), 0); rowsInserted.clear(); QCOMPARE(model->get(0, "displayName").toString(), QString("CoolAccount")); /* Create a second account */ Accounts::Account *account2 = manager->createAccount("cool"); QVERIFY(account2 != 0); account2->setEnabled(true); account2->setDisplayName("UncoolAccount"); account2->syncAndBlock(); rowsInserted.wait(); QCOMPARE(model->rowCount(), 3); QCOMPARE(rowsInserted.count(), 1); int row = rowsInserted.at(0).at(1).toInt(); QCOMPARE(rowsRemoved.count(), 0); rowsInserted.clear(); QCOMPARE(model->get(row, "displayName").toString(), QString("UncoolAccount")); /* Delete the first account */ account1->remove(); account1->syncAndBlock(); rowsRemoved.wait(); QCOMPARE(model->rowCount(), 2); QCOMPARE(rowsInserted.count(), 0); QCOMPARE(rowsRemoved.count(), 1); rowsRemoved.clear(); QCOMPARE(model->get(0, "displayName").toString(), QString("UncoolAccount")); /* Delete also the second account */ account2->remove(); account2->syncAndBlock(); rowsRemoved.wait(); QCOMPARE(model->rowCount(), 1); QCOMPARE(rowsInserted.count(), 0); QCOMPARE(rowsRemoved.count(), 1); rowsRemoved.clear(); QCOMPARE(model->get(0, "displayName").toString(), QString("hello")); delete model; delete accountModel; } void AccessModelTest::testEnabling() { QQmlEngine engine; QQmlComponent component(&engine); component.setData("import Ubuntu.OnlineAccounts 0.1\n" "AccountServiceModel {\n" " provider: \"cool\"\n" " service: \"global\"\n" "}", QUrl()); QAbstractListModel *accountModel = qobject_cast(component.create()); QVERIFY(accountModel != 0); QCOMPARE(accountModel->property("count").toInt(), 0); /* Create the access model */ AccessModel *model = new AccessModel(this); QVERIFY(model != 0); model->setLastItemText("hello"); model->setAccountModel(accountModel); model->setApplicationId("mailer"); QCOMPARE(model->rowCount(), 1); /* Now add two accounts, but verify that the model should expose only the * one which has at least one service disabled */ QSignalSpy rowsInserted(model, SIGNAL(rowsInserted(const QModelIndex&,int,int))); QSignalSpy rowsRemoved(model, SIGNAL(rowsRemoved(const QModelIndex&,int,int))); Accounts::Manager *manager = new Accounts::Manager(this); Accounts::Service coolMail = manager->service("coolmail"); Accounts::Service coolShare = manager->service("coolshare"); Accounts::Account *account1 = manager->createAccount("cool"); QVERIFY(account1 != 0); account1->setEnabled(true); account1->setDisplayName("CoolAccount"); account1->selectService(coolMail); account1->setEnabled(true); account1->syncAndBlock(); rowsInserted.wait(); QCOMPARE(model->rowCount(), 2); QCOMPARE(rowsInserted.count(), 1); QCOMPARE(rowsRemoved.count(), 0); rowsInserted.clear(); QCOMPARE(model->get(0, "displayName").toString(), QString("CoolAccount")); /* Create a second account, enable all of its services */ Accounts::Account *account2 = manager->createAccount("cool"); QVERIFY(account2 != 0); account2->setEnabled(true); account2->setDisplayName("UncoolAccount"); account2->selectService(coolMail); account2->setEnabled(true); account2->selectService(coolShare); account2->setEnabled(true); account2->syncAndBlock(); /* Verify that a row is *not* added */ QTest::qWait(50); QCOMPARE(model->rowCount(), 2); QCOMPARE(rowsInserted.count(), 0); QCOMPARE(rowsRemoved.count(), 0); rowsInserted.clear(); delete model; delete accountModel; } QTEST_MAIN(AccessModelTest); #include "tst_access_model.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/window-watcher.h0000644000015201777760000000244412315270143033550 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef WINDOW_WATCHER_H #define WINDOW_WATCHER_H #include #include class WindowWatcher: public QObject { Q_OBJECT public: static WindowWatcher *instance() { if (!m_instance) { m_instance = new WindowWatcher; } return m_instance; } void emitWindowShown(QWindow *w) { Q_EMIT windowShown(w); } Q_SIGNALS: void windowShown(QObject *); protected: WindowWatcher(): QObject() {} private: static WindowWatcher *m_instance; }; #endif // WINDOW_WATCHER_H ././@LongLink0000000000000000000000000000015400000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_inactivity_timer.proubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/tst_inactivity_ti0000644000015201777760000000067312315270143034133 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) TARGET = tst_inactivity_timer CONFIG += \ debug QT += \ core \ testlib SOURCES += \ $${TOP_SRC_DIR}/src/inactivity-timer.cpp \ tst_inactivity_timer.cpp HEADERS += \ $${TOP_SRC_DIR}/src/inactivity-timer.h INCLUDEPATH += \ $${TOP_SRC_DIR}/src check.commands = "xvfb-run -s '-screen 0 640x480x24' -a ./$${TARGET}" check.depends = $${TARGET} QMAKE_EXTRA_TARGETS += check ././@LongLink0000000000000000000000000000015200000000000011213 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/online-accounts-ui.proubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/online-accounts-u0000644000015201777760000000013412315270143033715 0ustar pbusernogroup00000000000000TEMPLATE = subdirs SUBDIRS = \ qml \ tst_inactivity_timer.pro \ tst_service.pro ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/0000755000015201777760000000000012315270412031221 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/qml.pro0000644000015201777760000000045612315270143032542 0ustar pbusernogroup00000000000000include(../../../common-project-config.pri) TARGET = tst_online_accounts_qml CONFIG += \ qmltestcase \ warn_on SOURCES += \ tst_online_accounts_qml.cpp check.commands = "xvfb-run -s '-screen 0 640x480x24' -a dbus-test-runner -t " check.depends = $${TARGET} QMAKE_EXTRA_TARGETS += check ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/Source/0000755000015201777760000000000012315270412032461 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/Source/qmldir0000644000015201777760000000012212315270143033670 0ustar pbusernogroup00000000000000module Source AccountCreationPage 1.0 ../../../../src/qml/AccountCreationPage.qml ././@LongLink0000000000000000000000000000016300000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/tst_online_accounts_qml.cppubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/tst_online_ac0000644000015201777760000000011012315270143033756 0ustar pbusernogroup00000000000000#include QUICK_TEST_MAIN(online_accounts_qml) ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/testPlugin/0000755000015201777760000000000012315270412033357 5ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000015300000000000011214 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/testPlugin/Main.qmlubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/testPlugin/Ma0000644000015201777760000000045312315270143033642 0ustar pbusernogroup00000000000000import QtQuick 2.0 Rectangle { id: root property Item flickable: flickableItem signal finished width: 200 height: 200 Timer { interval: 50; running: true; repeat: false onTriggered: root.finished() } Flickable { id: flickableItem } } ././@LongLink0000000000000000000000000000016300000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/tst_AccountCreationPage.qmlubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/qml/tst_AccountCr0000644000015201777760000000102012315270143033711 0ustar pbusernogroup00000000000000import QtQuick 2.0 import QtTest 1.0 import Source 1.0 Item { property string qmlPluginPath: "../../tests/online-accounts-ui/qml/" width: 200 height: 200 Component { id: pageComponent AccountCreationPage {} } TestCase { name: "AccountCreationPage" function test_flickable() { var page = pageComponent.createObject(null, { "providerId": "testPlugin" }) verify(page.flickable != null) page.destroy() } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/0000755000015201777760000000000012315270412031341 5ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000014600000000000011216 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/applications/ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/applications0000755000015201777760000000000012315270412033750 5ustar pbusernogroup00000000000000././@LongLink0000000000000000000000000000016400000000000011216 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/applications/mailer.desktopubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/applications0000644000015201777760000000024312315270143033752 0ustar pbusernogroup00000000000000[Desktop Entry] Name=Easy Mailer Comment=Send and receive mail Exec=/bin/sh Icon=mailer-icon Terminal=false Type=Application Categories=Application;Network;Email; ././@LongLink0000000000000000000000000000014600000000000011216 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/cool.providerubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/cool.provide0000644000015201777760000000026012315270143033666 0ustar pbusernogroup00000000000000 Cool provider general_myprovider true ././@LongLink0000000000000000000000000000015300000000000011214 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/mailer.applicationubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/mailer.appli0000644000015201777760000000101412315270143033636 0ustar pbusernogroup00000000000000 Mailer application mailer-catalog mailer.desktop Mailer can retrieve your e-mails Mailer can even share stuff on CoolShare ././@LongLink0000000000000000000000000000015100000000000011212 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/coolmail.serviceubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/coolmail.ser0000644000015201777760000000105312315270143033653 0ustar pbusernogroup00000000000000 e-mail Cool Mail general_myservice cool ././@LongLink0000000000000000000000000000015200000000000011213 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/coolshare.serviceubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/data/coolshare.se0000644000015201777760000000027512315270143033656 0ustar pbusernogroup00000000000000 sharing Cool Share general_otherservice cool ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/mock/0000755000015201777760000000000012315270412031361 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/online-accounts-ui/mock/qwindow.cpp0000644000015201777760000000265712315270143033570 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "window-watcher.h" #include #include #define TRANSIENT_PARENT "transientParent" #define WIN_ID "winId" WindowWatcher *WindowWatcher::m_instance = 0; QWindow::QWindow(QWindow *parent): QObject(parent), QSurface(QSurface::Window) { qDebug() << Q_FUNC_INFO; } QWindow::~QWindow() { } void QWindow::show() { WindowWatcher::instance()->emitWindowShown(this); } void QWindow::setTransientParent(QWindow *parent) { setProperty(TRANSIENT_PARENT, QVariant::fromValue(parent)); } QWindow *QWindow::fromWinId(WId winId) { QWindow *window = new QWindow; window->setProperty(WIN_ID, winId); return window; } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/client/0000755000015201777760000000000012315270412026172 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/client/client.pro0000644000015201777760000000011312315270143030166 0ustar pbusernogroup00000000000000TEMPLATE = subdirs SUBDIRS = \ tst_client.pro \ tst_qml_client.pro ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/client/tst_qml_client.pro0000644000015201777760000000104012315270143031731 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) TARGET = tst_qml_client CONFIG += \ debug QT += \ core \ dbus \ qml \ testlib SOURCES += \ tst_qml_client.cpp INCLUDEPATH += \ $${TOP_SRC_DIR} PLUGIN_PATH = $${TOP_BUILD_DIR}/client/module DEFINES += \ PLUGIN_PATH=\\\"$${PLUGIN_PATH}\\\" check.commands = "LD_LIBRARY_PATH=$${TOP_BUILD_DIR}/client/OnlineAccountsClient:${LD_LIBRARY_PATH} xvfb-run -s '-screen 0 640x480x24' -a dbus-test-runner -t ./$${TARGET}" check.depends = $${TARGET} QMAKE_EXTRA_TARGETS += check ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/client/tst_client.pro0000644000015201777760000000077012315270143031071 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) TARGET = tst_client CONFIG += \ debug QT += \ core \ dbus \ testlib SOURCES += \ tst_client.cpp INCLUDEPATH += \ $${TOP_SRC_DIR}/client \ $${TOP_SRC_DIR} QMAKE_LIBDIR = $${TOP_BUILD_DIR}/client/OnlineAccountsClient QMAKE_RPATHDIR = $${QMAKE_LIBDIR} LIBS += -lonline-accounts-client check.commands = "xvfb-run -s '-screen 0 640x480x24' -a dbus-test-runner -t ./$${TARGET}" check.depends = $${TARGET} QMAKE_EXTRA_TARGETS += check ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/client/tst_qml_client.cpp0000644000015201777760000001071212315270143031721 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of OnlineAccountsClient. * * OnlineAccountsClient is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * OnlineAccountsClient 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OnlineAccountsClient. If not, see * . */ #include "src/globals.h" #include #include #include #include #include #include #include #include class Service: public QObject { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "com.canonical.OnlineAccountsUi") public: Service(): QObject() {} QVariantMap options() const { return m_options; } public Q_SLOTS: QVariantMap requestAccess(const QVariantMap &options) { m_options = options; return QVariantMap(); } private: QVariantMap m_options; }; class SetupTest: public QObject { Q_OBJECT public: SetupTest(); QVariantMap options() const { return m_service.options(); } private Q_SLOTS: void initTestCase(); void testLoadPlugin(); void testProperties(); void testExec(); void testExecWithServiceType(); private: Service m_service; }; SetupTest::SetupTest(): QObject(0) { } void SetupTest::initTestCase() { qputenv("QML2_IMPORT_PATH", PLUGIN_PATH); QDBusConnection connection = QDBusConnection::sessionBus(); connection.registerObject(OAU_OBJECT_PATH, &m_service, QDBusConnection::ExportAllContents); connection.registerService(OAU_SERVICE_NAME); } void SetupTest::testLoadPlugin() { QQmlEngine engine; QQmlComponent component(&engine); component.setData("import Ubuntu.OnlineAccounts.Client 0.1\n" "Setup {}", QUrl()); QObject *object = component.create(); if (component.isError()) { Q_FOREACH(const QQmlError &error, component.errors()) { qDebug() << error; } } QVERIFY(object != 0); delete object; } void SetupTest::testProperties() { QQmlEngine engine; QQmlComponent component(&engine); component.setData("import Ubuntu.OnlineAccounts.Client 0.1\n" "Setup { providerId: \"hello\" }", QUrl()); QObject *object = component.create(); QVERIFY(object != 0); QCOMPARE(object->property("providerId").toString(), QString("hello")); QCOMPARE(object->property("serviceTypeId").toString(), QString()); object->setProperty("providerId", QString("ciao")); QCOMPARE(object->property("providerId").toString(), QString("ciao")); object->setProperty("serviceTypeId", QString("hi")); QCOMPARE(object->property("serviceTypeId").toString(), QString("hi")); delete object; } void SetupTest::testExec() { QQmlEngine engine; QQmlComponent component(&engine); component.setData("import Ubuntu.OnlineAccounts.Client 0.1\n" "Setup {}", QUrl()); QObject *object = component.create(); QVERIFY(object != 0); QSignalSpy finished(object, SIGNAL(finished())); QVERIFY(QMetaObject::invokeMethod(object, "exec")); QVERIFY(finished.wait()); QCOMPARE(options().contains(OAU_KEY_PROVIDER), false); QCOMPARE(options().contains(OAU_KEY_SERVICE_TYPE), false); } void SetupTest::testExecWithServiceType() { QQmlEngine engine; QQmlComponent component(&engine); component.setData("import Ubuntu.OnlineAccounts.Client 0.1\n" "Setup { serviceTypeId: \"e-mail\" }", QUrl()); QObject *object = component.create(); QVERIFY(object != 0); QSignalSpy finished(object, SIGNAL(finished())); QVERIFY(QMetaObject::invokeMethod(object, "exec")); QVERIFY(finished.wait()); QCOMPARE(options().value(OAU_KEY_SERVICE_TYPE).toString(), QStringLiteral("e-mail")); } QTEST_MAIN(SetupTest); #include "tst_qml_client.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/tests/client/tst_client.cpp0000644000015201777760000000732312315270143031054 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of OnlineAccountsClient. * * OnlineAccountsClient is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * OnlineAccountsClient 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OnlineAccountsClient. If not, see * . */ #include "src/globals.h" #include #include #include #include #include #include #include using namespace OnlineAccountsClient; class Service: public QObject { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "com.canonical.OnlineAccountsUi") public: Service(): QObject() {} QVariantMap options() const { return m_options; } public Q_SLOTS: QVariantMap requestAccess(const QVariantMap &options) { m_options = options; return QVariantMap(); } private: QVariantMap m_options; }; class SetupTest: public QObject { Q_OBJECT public: SetupTest(); QVariantMap options() const { return m_service.options(); } private Q_SLOTS: void initTestCase(); void testProperties(); void testExec(); void testExecWithProvider(); void testExecWithServiceType(); void testWindowId(); private: Service m_service; }; SetupTest::SetupTest(): QObject(0) { } void SetupTest::initTestCase() { QDBusConnection connection = QDBusConnection::sessionBus(); connection.registerObject(OAU_OBJECT_PATH, &m_service, QDBusConnection::ExportAllContents); connection.registerService(OAU_SERVICE_NAME); } void SetupTest::testProperties() { Setup setup; QCOMPARE(setup.providerId(), QString()); QCOMPARE(setup.serviceTypeId(), QString()); setup.setProviderId("ciao"); QCOMPARE(setup.providerId(), QString("ciao")); setup.setServiceTypeId("hello"); QCOMPARE(setup.serviceTypeId(), QString("hello")); } void SetupTest::testExec() { Setup setup; QSignalSpy finished(&setup, SIGNAL(finished())); setup.exec(); QVERIFY(finished.wait(10000)); QCOMPARE(options().contains(OAU_KEY_PROVIDER), false); QCOMPARE(options().contains(OAU_KEY_SERVICE_TYPE), false); QCOMPARE(options().contains(OAU_KEY_WINDOW_ID), false); } void SetupTest::testExecWithProvider() { Setup setup; setup.setProviderId("lethal-provider"); QSignalSpy finished(&setup, SIGNAL(finished())); setup.exec(); QVERIFY(finished.wait(10000)); QCOMPARE(options().value(OAU_KEY_PROVIDER).toString(), QStringLiteral("lethal-provider")); } void SetupTest::testExecWithServiceType() { Setup setup; setup.setServiceTypeId("e-mail"); QSignalSpy finished(&setup, SIGNAL(finished())); setup.exec(); QVERIFY(finished.wait(10000)); QCOMPARE(options().value(OAU_KEY_SERVICE_TYPE).toString(), QStringLiteral("e-mail")); } void SetupTest::testWindowId() { Setup setup; QWindow window; QSignalSpy finished(&setup, SIGNAL(finished())); setup.exec(); QVERIFY(finished.wait()); QCOMPARE(options().value(OAU_KEY_WINDOW_ID).toUInt(), uint(window.winId())); } QTEST_MAIN(SetupTest); #include "tst_client.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/0000755000015201777760000000000012315270412030230 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/plugin.h0000644000015201777760000000242412315270143031702 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef ONLINE_ACCOUNTS_SYSTEM_SETTINGS_PLUGIN_H #define ONLINE_ACCOUNTS_SYSTEM_SETTINGS_PLUGIN_H #include #include class Plugin: public QObject, public SystemSettings::PluginInterface { Q_OBJECT Q_PLUGIN_METADATA(IID "com.ubuntu.SystemSettings.PluginInterface") Q_INTERFACES(SystemSettings::PluginInterface) public: Plugin(); SystemSettings::ItemBase *createItem(const QVariantMap &staticData, QObject *parent = 0); }; #endif // ONLINE_ACCOUNTS_SYSTEM_SETTINGS_PLUGIN_H ././@LongLink0000000000000000000000000000015200000000000011213 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/online-accounts.settingsubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/online-accounts.set0000644000015201777760000000061412315270143034050 0ustar pbusernogroup00000000000000{ "name": "Accounts", "icon": "/usr/share/ubuntu/settings/system/icons/settings-accounts.svg", "translations": "ubuntu-system-settings-online-accounts", "category": "personal", "priority": 3, "keywords": [ "accounts", "online", "login" ], "has-dynamic-keywords": true, "has-dynamic-visibility": false, "plugin": "online-accounts" } ././@LongLink0000000000000000000000000000015400000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/system-settings-plugin.proubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/system-settings-plu0000644000015201777760000000130712315270143034135 0ustar pbusernogroup00000000000000include(../common-project-config.pri) include($${TOP_SRC_DIR}/common-vars.pri) TEMPLATE = lib TARGET = online-accounts CONFIG += \ link_pkgconfig \ plugin \ qt QT += \ core \ qml PKGCONFIG += \ SystemSettings LIBS += -lonline-accounts-client QMAKE_LIBDIR += $${TOP_BUILD_DIR}/client/OnlineAccountsClient INCLUDEPATH += \ $${TOP_SRC_DIR}/client \ /usr/include SOURCES += \ plugin.cpp HEADERS += \ plugin.h settings.files = online-accounts.settings settings.path = $${PLUGIN_MANIFEST_DIR} INSTALLS += settings target.path = $${PLUGIN_MODULE_DIR} INSTALLS += target image.files = settings-accounts.svg image.path = $${PLUGIN_MANIFEST_DIR}/icons INSTALLS += image ././@LongLink0000000000000000000000000000014700000000000011217 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/settings-accounts.svgubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/settings-accounts.s0000644000015201777760000000773212315270143034103 0ustar pbusernogroup00000000000000 image/svg+xml ubuntu-system-settings-online-accounts-0.3+14.04.20140328/system-settings-plugin/plugin.cpp0000644000015201777760000000333512315270143032237 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "plugin.h" #include #include #include #include using namespace SystemSettings; class Item: public ItemBase { Q_OBJECT public: Item(const QVariantMap &staticData, QObject *parent = 0); ~Item(); QQmlComponent *pageComponent(QQmlEngine *engine, QObject *parent = 0) Q_DECL_OVERRIDE; private: OnlineAccountsClient::Setup m_setup; }; Item::Item(const QVariantMap &staticData, QObject *parent): ItemBase(staticData, parent) { } Item::~Item() { } QQmlComponent *Item::pageComponent(QQmlEngine *engine, QObject *parent) { Q_UNUSED(engine); Q_UNUSED(parent); qDebug() << "Opening Online Accounts"; m_setup.exec(); return 0; } Plugin::Plugin(): QObject() { } ItemBase *Plugin::createItem(const QVariantMap &staticData, QObject *parent) { return new Item(staticData, parent); } #include "plugin.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/COPYING.LGPL-30000644000015201777760000001674312315270143025516 0ustar pbusernogroup00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. ubuntu-system-settings-online-accounts-0.3+14.04.20140328/README0000644000015201777760000000000112315270143024422 0ustar pbusernogroup00000000000000 ubuntu-system-settings-online-accounts-0.3+14.04.20140328/common-pkgconfig.pri0000644000015201777760000000052012315270143027521 0ustar pbusernogroup00000000000000# Include this file after defining the pkgconfig.files variable !isEmpty(pkgconfig.files) { QMAKE_SUBSTITUTES += $${pkgconfig.files}.in pkgconfig.CONFIG = no_check_exist pkgconfig.path = $${INSTALL_LIBDIR}/pkgconfig QMAKE_EXTRA_TARGETS += pkgconfig INSTALLS += pkgconfig QMAKE_CLEAN += $${pkgconfig.files} } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/common-vars.pri0000644000015201777760000000144012315270143026527 0ustar pbusernogroup00000000000000#----------------------------------------------------------------------------- # Common variables for all projects. #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Project name (used e.g. in include file and doc install path). # remember to update debian/* files if you changes this #----------------------------------------------------------------------------- PROJECT_NAME = ubuntu-system-settings-online-accounts #----------------------------------------------------------------------------- # Project version # remember to update debian/* files if you changes this #----------------------------------------------------------------------------- PROJECT_VERSION = 0.2 # End of File ubuntu-system-settings-online-accounts-0.3+14.04.20140328/common-installs-config.pri0000644000015201777760000000267412315270143030662 0ustar pbusernogroup00000000000000#----------------------------------------------------------------------------- # Common installation configuration for all projects. #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # default installation target for applications #----------------------------------------------------------------------------- contains(TEMPLATE, app) { target.path = $${INSTALL_PREFIX}/bin INSTALLS += target message("====") message("==== INSTALLS += target") } #----------------------------------------------------------------------------- # default installation target for libraries #----------------------------------------------------------------------------- contains(TEMPLATE, lib) { isEmpty(target.path) { target.path = $${INSTALL_LIBDIR} } INSTALLS += target message("====") message("==== INSTALLS += target") } #----------------------------------------------------------------------------- # target for header files #----------------------------------------------------------------------------- !isEmpty(headers.files) { headers.path = $${INSTALL_PREFIX}/include/$${TARGET} INSTALLS += headers message("====") message("==== INSTALLS += headers") } else { message("====") message("==== NOTE: Remember to add your API headers into `headers.files' for installation!") } # End of File ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/0000755000015201777760000000000012315270412025030 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/client.pro0000644000015201777760000000015512315270143027032 0ustar pbusernogroup00000000000000include(doc/doc.pri) TEMPLATE = subdirs CONFIG += ordered SUBDIRS = \ OnlineAccountsClient \ module ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/0000755000015201777760000000000012315270412031113 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/global.h0000644000015201777760000000216012315270143032524 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of OnlineAccountsClient. * * OnlineAccountsClient is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * OnlineAccountsClient 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OnlineAccountsClient. If not, see * . */ #ifndef ONLINE_ACCOUNTS_CLIENT_GLOBAL_H #define ONLINE_ACCOUNTS_CLIENT_GLOBAL_H #include #if defined(BUILDING_ONLINE_ACCOUNTS_CLIENT) # define OAC_EXPORT Q_DECL_EXPORT #else # define OAC_EXPORT Q_DECL_IMPORT #endif #endif // ONLINE_ACCOUNTS_CLIENT_GLOBAL_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/setup.cpp0000644000015201777760000001306312315270143032763 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of OnlineAccountsClient. * * OnlineAccountsClient is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * OnlineAccountsClient 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OnlineAccountsClient. If not, see * . */ #include "onlineaccountsui_interface.h" #include "setup.h" #include "src/globals.h" #include #include #include #include #include #include using namespace OnlineAccountsClient; using namespace com::canonical; namespace OnlineAccountsClient { class SetupPrivate: public QObject { Q_OBJECT Q_DECLARE_PUBLIC(Setup) public: inline SetupPrivate(Setup *setup); ~SetupPrivate() {}; void exec(); QWindow *clientWindow() const; private Q_SLOTS: void onRequestAccessReply(QDBusPendingCallWatcher *watcher); private: OnlineAccountsUi m_onlineAccountsUi; QString m_serviceTypeId; QString m_providerId; mutable Setup *q_ptr; }; }; // namespace SetupPrivate::SetupPrivate(Setup *setup): QObject(setup), m_onlineAccountsUi(OAU_SERVICE_NAME, OAU_OBJECT_PATH, QDBusConnection::sessionBus()), q_ptr(setup) { m_onlineAccountsUi.setTimeout(INT_MAX); } void SetupPrivate::exec() { QVariantMap options; QWindow *window = clientWindow(); if (window) { options.insert(OAU_KEY_WINDOW_ID, window->winId()); } if (!m_serviceTypeId.isEmpty()) { options.insert(OAU_KEY_SERVICE_TYPE, m_serviceTypeId); } if (!m_providerId.isEmpty()) { options.insert(OAU_KEY_PROVIDER, m_providerId); } QDBusPendingReply reply = m_onlineAccountsUi.requestAccess(options); QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this); QObject::connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), this, SLOT(onRequestAccessReply(QDBusPendingCallWatcher*))); } QWindow *SetupPrivate::clientWindow() const { QWindow *window = QGuiApplication::focusWindow(); if (window) return window; /* Otherwise, just return the first toplevel window; later on, if the need * arises, we might add a property to let the client explicitly specify * which window to use. */ return QGuiApplication::topLevelWindows().value(0, 0); } void SetupPrivate::onRequestAccessReply(QDBusPendingCallWatcher *watcher) { Q_Q(Setup); watcher->deleteLater(); QDBusPendingReply reply = *watcher; if (reply.isError()) { qWarning() << "RequestAccess failed:" << reply.error(); } else { // At the moment, we don't have any use for the reply. } Q_EMIT q->finished(); } /*! * \qmltype Setup * \inqmlmodule Ubuntu.OnlineAccounts.Client 0.1 * \ingroup Ubuntu * * \brief Invoke the Online Accounts panel * * This object can be used by applications to request the creation of an * account. By calling the \l exec() method, the Online Accounts panel will * appear and guide the user through the creation of an account. Once done, the * \l finished() signal will be emitted. The type of account to be created can * be configured by this object's properties. * * Example: * * \qml * import QtQuick 2.0 * import Ubuntu.Components 0.1 * import Ubuntu.OnlineAccounts.Client 0.1 * * Rectangle { * width: 400 * height: 300 * * Button { * anchors.centerIn: parent * text: "Create Facebook account" * onClicked: setup.exec() * } * * Setup { * id: setup * providerId: "facebook" * } * } * \endqml */ Setup::Setup(QObject *parent): QObject(parent), d_ptr(new SetupPrivate(this)) { } Setup::~Setup() { delete d_ptr; } /*! * \qmlproperty string Setup::serviceTypeId * If set to a valid service type, the user will be asked to create an Online * Account which supports this service type. */ void Setup::setServiceTypeId(const QString &serviceTypeId) { Q_D(Setup); if (serviceTypeId == d->m_serviceTypeId) return; d->m_serviceTypeId = serviceTypeId; Q_EMIT serviceTypeIdChanged(); } QString Setup::serviceTypeId() const { Q_D(const Setup); return d->m_serviceTypeId; } /*! * \qmlproperty string Setup::providerId * If set to a valid provider, the user will be asked to create an Online * Account provided by this entity. */ void Setup::setProviderId(const QString &providerId) { Q_D(Setup); if (providerId == d->m_providerId) return; d->m_providerId = providerId; Q_EMIT providerIdChanged(); } QString Setup::providerId() const { Q_D(const Setup); return d->m_providerId; } /*! * \qmlmethod void Setup::exec() * Launches the Online Accounts panel. */ void Setup::exec() { Q_D(Setup); d->exec(); } /*! * \qmlsignal Setup::finished() * Emitted when the Online Accounts panel has been closed. */ #include "setup.moc" ././@LongLink0000000000000000000000000000015700000000000011220 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/OnlineAccountsClient.proubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/OnlineAccounts0000644000015201777760000000147712315270143033774 0ustar pbusernogroup00000000000000include (../../common-project-config.pri) include($${TOP_SRC_DIR}/common-vars.pri) TEMPLATE = lib TARGET = online-accounts-client CONFIG += \ qt QT += \ dbus \ gui QMAKE_CXXFLAGS += \ -fvisibility=hidden DEFINES += BUILDING_ONLINE_ACCOUNTS_CLIENT # Error on undefined symbols QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF public_headers += \ global.h \ setup.h Setup INCLUDEPATH += \ $${TOP_SRC_DIR} ONLINE_ACCOUNTS_UI_SRC = $${TOP_SRC_DIR}/src DBUS_INTERFACES += \ $${ONLINE_ACCOUNTS_UI_SRC}/com.canonical.OnlineAccountsUi.xml SOURCES += \ setup.cpp HEADERS += \ $${private_headers} \ $${public_headers} headers.files = $${public_headers} include($${TOP_SRC_DIR}/common-installs-config.pri) pkgconfig.files = OnlineAccountsClient.pc include($${TOP_SRC_DIR}/common-pkgconfig.pri) ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/Setup0000644000015201777760000000002312315270143032132 0ustar pbusernogroup00000000000000#include "setup.h" ././@LongLink0000000000000000000000000000016100000000000011213 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/OnlineAccountsClient.pc.inubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/OnlineAccounts0000644000015201777760000000045712315270143033771 0ustar pbusernogroup00000000000000prefix=$$INSTALL_PREFIX exec_prefix=${prefix} libdir=$$INSTALL_LIBDIR includedir=${prefix}/include Name: OnlineAccountsClient Description: Client for the Online Accounts setup Version: $$PROJECT_VERSION Requires: Qt5Core Requires.private: Qt5Gui Cflags: -I${includedir} Libs: -L${libdir} -l$${TARGET} ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/OnlineAccountsClient/setup.h0000644000015201777760000000341512315270143032430 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of OnlineAccountsClient. * * OnlineAccountsClient is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * OnlineAccountsClient 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OnlineAccountsClient. If not, see * . */ #ifndef ONLINE_ACCOUNTS_CLIENT_SETUP_H #define ONLINE_ACCOUNTS_CLIENT_SETUP_H #include "global.h" #include namespace OnlineAccountsClient { class SetupPrivate; class OAC_EXPORT Setup: public QObject { Q_OBJECT Q_PROPERTY(QString serviceTypeId READ serviceTypeId \ WRITE setServiceTypeId NOTIFY serviceTypeIdChanged) Q_PROPERTY(QString providerId READ providerId \ WRITE setProviderId NOTIFY providerIdChanged) public: Setup(QObject *parent = 0); ~Setup(); void setServiceTypeId(const QString &serviceTypeId); QString serviceTypeId() const; void setProviderId(const QString &providerId); QString providerId() const; Q_INVOKABLE void exec(); Q_SIGNALS: void serviceTypeIdChanged(); void providerIdChanged(); void finished(); private: SetupPrivate *d_ptr; Q_DECLARE_PRIVATE(Setup) }; }; // namespace #endif // ONLINE_ACCOUNTS_CLIENT_SETUP_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/0000755000015201777760000000000012315270412025575 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/html/0000755000015201777760000000000012315270412026541 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/doc.pri0000644000015201777760000000107612315270143027063 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) QDOC = $$[QT_INSTALL_BINS]/qdoc QMAKE_EXTRA_TARGETS += clean-docs docs-html clean-docs-html CONFIG(ubuntu-docs) { docs-html.commands = \ "$${QDOC} $${PWD}/online-accounts-client-ubuntu.qdocconf" } else { docs-html.commands = \ "$${QDOC} $${PWD}/online-accounts-client.qdocconf" } docs.files = $$PWD/html docs.path = $${INSTALL_PREFIX}/share/online-accounts-client/doc docs.depends = docs-html INSTALLS += docs clean-docs-html.commands = \ "rm -rf $${PWD}/html" clean-docs.depends = clean-docs-html ././@LongLink0000000000000000000000000000015400000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/online-accounts-client-ubuntu.qdocconfubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/online-accounts-client-ubuntu.q0000644000015201777760000000150012315270143033651 0ustar pbusernogroup00000000000000include(online-accounts-client-common.qdocconf) include(ubuntu-appdev-site-header.qdocconf) include(ubuntu-appdev-site-footer.qdocconf) HTML.stylesheets = \ doc/css/reset.css \ doc/css/qtquick.css \ doc/css/base.css \ doc/css/scratch.css HTML.headerstyles = \ "\n" \ "\n" \ "\n" \ "\n" \ "\n" \ "\n" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/css/0000755000015201777760000000000012315270412026365 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/css/scratch.css0000644000015201777760000000137412315270143030534 0ustar pbusernogroup00000000000000body { margin: 0; } div.toc ul { padding: 0; } div.toc li { margin-bottom: 3px; } h1.title { font-size: 36px; line-height: 1.1; font-weight: normal; } h0, h2 { font-size: 24px; line-height: 1.2; margin: 14px 0; font-weight: normal; display: block; } a:hover { color: #dd4814; text-decoration: underline; outline: 0; } table, pre { border-radius: 0; } .annotated td { padding: 0.8em 1em 0.3em; } .wrapper { width: 940px; margin: 0 auto; } .main-content { width: 668px; position: relative; left: 270px; } .title { margin-left: -270px; margin-top: 30px; margin-bottom: 50px; } .toc { margin-left: -270px; font-size: 100%; margin-bottom: 40px; padding: 0; z-index: 2; position: absolute; top: 100px; width: 250px; } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/css/reset.css0000644000015201777760000000153312315270143030224 0ustar pbusernogroup00000000000000/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/css/qtquick.css0000644000015201777760000003175112315270143030570 0ustar pbusernogroup00000000000000@media screen { /* basic elements */ html { color: #000000; background: #FFFFFF; } table { border-collapse: collapse; border-spacing: 0; } fieldset, img { border: 0; max-width:100%; } address, caption, cite, code, dfn, em, strong, th, var, optgroup { font-style: inherit; font-weight: inherit; } del, ins { text-decoration: none; } ol li { list-style: decimal; } ul li { list-style: none; } caption, th { text-align: left; } h1.title { font-weight: bold; font-size: 150%; } h0 { font-weight: bold; font-size: 130%; } h1, h2, h3, h4, h5, h6 { font-size: 100%; } q:before, q:after { content: ''; } abbr, acronym { border: 0; font-variant: normal; } sup, sub { vertical-align: baseline; } tt, .qmlreadonly span, .qmldefault span { word-spacing:0.5em; } legend { color: #000000; } strong { font-weight: bold; } em { font-style: italic; } body { margin: 0 1.5em 0 1.5em; font-family: ubuntu; line-height: normal } a { color: #00732F; text-decoration: none; } hr { background-color: #E6E6E6; border: 1px solid #E6E6E6; height: 1px; width: 100%; text-align: left; margin: 1.5em 0 1.5em 0; } pre { border: 1px solid #DDDDDD; -moz-border-radius: 0.7em 0.7em 0.7em 0.7em; -webkit-border-radius: 0.7em 0.7em 0.7em 0.7em; border-radius: 0.7em 0.7em 0.7em 0.7em; padding: 1em 1em 1em 1em; overflow-x: auto; } table, pre { -moz-border-radius: 0.7em 0.7em 0.7em 0.7em; -webkit-border-radius: 0.7em 0.7em 0.7em 0.7em; border-radius: 0.7em 0.7em 0.7em 0.7em; background-color: #F6F6F6; border: 1px solid #E6E6E6; border-collapse: separate; margin-bottom: 2.5em; } pre { font-size: 90%; display: block; overflow:hidden; } thead { margin-top: 0.5em; font-weight: bold } th { padding: 0.5em 1.5em 0.5em 1em; background-color: #E1E1E1; border-left: 1px solid #E6E6E6; } td { padding: 0.25em 1.5em 0.25em 1em; } td.rightAlign { padding: 0.25em 0.5em 0.25em 1em; } table tr.odd { border-left: 1px solid #E6E6E6; background-color: #F6F6F6; color: black; } table tr.even { border-left: 1px solid #E6E6E6; background-color: #ffffff; color: #202020; } div.float-left { float: left; margin-right: 2em } div.float-right { float: right; margin-left: 2em } span.comment { color: #008B00; } span.string, span.char { color: #000084; } span.number { color: #a46200; } span.operator { color: #202020; } span.keyword { color: #840000; } span.name { color: black } span.type { font-weight: bold } span.type a:visited { color: #0F5300; } span.preprocessor { color: #404040 } /* end basic elements */ /* font style elements */ .heading { font-weight: bold; font-size: 125%; } .subtitle { font-size: 110% } .small-subtitle { font-size: 100% } .red { color:red; } /* end font style elements */ /* global settings*/ .header, .footer { display: block; clear: both; overflow: hidden; } /* end global settings*/ /* header elements */ .header .qtref { color: #00732F; font-weight: bold; font-size: 130%; } .header .content { margin-left: 5px; margin-top: 5px; margin-bottom: 0.5em; } .header .breadcrumb { font-size: 90%; padding: 0.5em 0 0.5em 1em; margin: 0; background-color: #fafafa; height: 1.35em; border-bottom: 1px solid #d1d1d1; } .header .breadcrumb ul { margin: 0; padding: 0; } .header .content { word-wrap: break-word; } .header .breadcrumb ul li { float: left; background: url(../images/breadcrumb.png) no-repeat 0 3px; padding-left: 1.5em; margin-left: 1.5em; } .header .breadcrumb ul li.last { font-weight: normal; } .header .breadcrumb ul li a { color: #00732F; } .header .breadcrumb ul li.first { background-image: none; padding-left: 0; margin-left: 0; } .header .content ol li { background: none; margin-bottom: 1.0em; margin-left: 1.2em; padding-left: 0 } .header .content li { background: url(../images/bullet_sq.png) no-repeat 0 5px; margin-bottom: 1em; padding-left: 1.2em; } /* end header elements */ /* content elements */ .content h1 { font-weight: bold; font-size: 130% } .content h2 { font-weight: bold; font-size: 120%; width: 100%; } .content h3 { font-weight: bold; font-size: 110%; width: 100%; } .content table p { margin: 0 } .content ul { padding-left: 2.5em; } .content li { padding-top: 0.25em; padding-bottom: 0.25em; } .content ul img { vertical-align: middle; } .content a:visited { color: #4c0033; text-decoration: none; } .content a:visited:hover { color: #4c0033; text-decoration: underline; } a:hover { color: #4c0033; text-decoration: underline; } descr p a { text-decoration: underline; } .descr p a:visited { text-decoration: underline; } .alphaChar{ width:95%; background-color:#F6F6F6; border:1px solid #E6E6E6; -moz-border-radius: 7px 7px 7px 7px; border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; font-size:12pt; padding-left:10px; margin-top:10px; margin-bottom:10px; } .flowList{ /*vertical-align:top;*/ /*margin:20px auto;*/ column-count:3; -webkit-column-count:3; -moz-column-count:3; /* column-width:100%; -webkit-column-width:200px; -col-column-width:200px; */ column-gap:41px; -webkit-column-gap:41px; -moz-column-gap:41px; column-rule: 1px dashed #ccc; -webkit-column-rule: 1px dashed #ccc; -moz-column-rule: 1px dashed #ccc; } .flowList dl{ } .flowList dd{ /*display:inline-block;*/ margin-left:10px; min-width:250px; line-height: 1.5; min-width:100%; min-height:15px; } .flowList dd a{ } .mainContent { padding-left:5px; } .content .flowList p{ padding:0px; } .content .alignedsummary { margin: 15px; } .qmltype { text-align: center; font-size: 120%; } .qmlreadonly { padding-left: 5px; float: right; color: #254117; } .qmldefault { padding-left: 5px; float: right; color: red; } .qmldoc { } .generic .alphaChar{ margin-top:5px; } .generic .odd .alphaChar{ background-color: #F6F6F6; } .generic .even .alphaChar{ background-color: #FFFFFF; } .memItemRight{ padding: 0.25em 1.5em 0.25em 0; } .highlightedCode { margin: 1.0em; } .annotated td { padding: 0.25em 0.5em 0.25em 0.5em; } .toc { font-size: 80% } .header .content .toc ul { padding-left: 0px; } .content .toc h3 { border-bottom: 0px; margin-top: 0px; } .content .toc h3 a:hover { color: #00732F; text-decoration: none; } .content .toc .level2 { margin-left: 1.5em; } .content .toc .level3 { margin-left: 3.0em; } .content ul li { background: url(../images/bullet_sq.png) no-repeat 0 0.7em; padding-left: 1em } .content .toc li { background: url(../images/bullet_dn.png) no-repeat 0 5px; padding-left: 1em } .relpage { -moz-border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; border-radius: 7px 7px 7px 7px; border: 1px solid #DDDDDD; padding: 25px 25px; clear: both; } .relpage ul { float: none; padding: 1.5em; } h3.fn, span.fn { -moz-border-radius:7px 7px 7px 7px; -webkit-border-radius:7px 7px 7px 7px; border-radius:7px 7px 7px 7px; background-color: #F6F6F6; border-width: 1px; border-style: solid; border-color: #E6E6E6; font-weight: bold; word-spacing:3px; padding:3px 5px; } .functionIndex { font-size:12pt; word-spacing:10px; margin-bottom:10px; background-color: #F6F6F6; border-width: 1px; border-style: solid; border-color: #E6E6E6; -moz-border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; border-radius: 7px 7px 7px 7px; width:100%; } .centerAlign { text-align:center; } .rightAlign { text-align:right; } .leftAlign { text-align:left; } .topAlign{ vertical-align:top } .functionIndex a{ display:inline-block; } /* end content elements */ /* footer elements */ .footer { color: #393735; font-size: 0.75em; text-align: center; padding-top: 1.5em; padding-bottom: 1em; background-color: #E6E7E8; margin: 0; } .footer p { margin: 0.25em } .small { font-size: 0.5em; } /* end footer elements */ .item { float: left; position: relative; width: 100%; overflow: hidden; } .item .primary { margin-right: 220px; position: relative; } .item hr { margin-left: -220px; } .item .secondary { float: right; width: 200px; position: relative; } .item .cols { clear: both; display: block; } .item .cols .col { float: left; margin-left: 1.5%; } .item .cols .col.first { margin-left: 0; } .item .cols.two .col { width: 45%; } .item .box { margin: 0 0 10px 0; } .item .box h3 { margin: 0 0 10px 0; } .cols.unclear { clear:none; } } /* end of screen media */ /* start of print media */ @media print { input, textarea, .header, .footer, .toolbar, .feedback, .wrapper .hd, .wrapper .bd .sidebar, .wrapper .ft, #feedbackBox, #blurpage, .toc, .breadcrumb, .toolbar, .floatingResult { display: none; background: none; } .content { background: none; display: block; width: 100%; margin: 0; float: none; } } /* end of print media */ /* modify the TOC layouts */ div.toc ul { padding-left: 20px; } div.toc li { padding-left: 4px; } /* Remove the border around images*/ a img { border:none; } /*Add styling to the front pages*/ .threecolumn_area { padding-top: 20px; padding-bottom: 20px; } .threecolumn_piece { display: inline-block; margin-left: 78px; margin-top: 8px; padding: 0; vertical-align: top; width: 25.5%; } div.threecolumn_piece ul { list-style-type: none; padding-left: 0px; margin-top: 2px; } div.threecolumn_piece p { margin-bottom: 7px; color: #5C626E; text-decoration: none; font-weight: bold; } div.threecolumn_piece li { padding-left: 0px; margin-bottom: 5px; } div.threecolumn_piece a { font-weight: normal; } /* Add style to guide page*/ .fourcolumn_area { padding-top: 20px; padding-bottom: 20px; } .fourcolumn_piece { display: inline-block; margin-left: 35px; margin-top: 8px; padding: 0; vertical-align: top; width: 21.3%; } div.fourcolumn_piece ul { list-style-type: none; padding-left: 0px; margin-top: 2px; } div.fourcolumn_piece p { margin-bottom: 7px; color: #40444D; text-decoration: none; font-weight: bold; } div.fourcolumn_piece li { padding-left: 0px; margin-bottom: 5px; } div.fourcolumn_piece a { font-weight: normal; } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/css/base.css0000644000015201777760000002706712315270143030026 0ustar pbusernogroup00000000000000/** * Ubuntu Developer base stylesheet * * A base stylesheet containing site-wide styles * * @project Ubuntu Developer * @version 1.0 * @author Canonical Web Team: Steve Edwards * @copyright 2011 Canonical Ltd. */ /** * @section Global */ body { font-family: 'Ubuntu', 'Ubuntu Beta', UbuntuBeta, Ubuntu, 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 13px; line-height: 1.4; color: #333; } a { color: #dd4814; text-decoration: none; outline: 0; } p, dl { margin-bottom: 10px; } strong { font-weight: bold; } em { font-style: italic; } code{ padding: 10px; font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'DejaVu Sans Mono', Courier, monospace; background-color: #fdf6f2; display: block; margin-bottom: 10px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } h1 { font-size: 36px; line-height: 1.1; margin-bottom: 20px; } article h1, h2 { font-size: 24px; line-height: 1.2; margin-bottom: 14px; } h3 { font-size: 16px; line-height: 1.3; margin-bottom: 8px; } h4 { font-weight: bold; } time { color:#999; } /** * @section Structure */ .header-login, .header-navigation div, .header-content div { margin: 0 auto; width: 940px; } .header-content h1{ background-color:#ffffff; display:inline-block; } .header-content h2{ background-color:#ffffff; display:table; } .header-login ul { margin: 4px 0; float: right; } .header-login li { margin-right: 10px; float: left; } .header-login a { color: #333; } .header-navigation { border-top: 2px solid #dd4814; border-bottom: 2px solid #dd4814; background-color: #fff; height: 54px; clear: right; overflow: hidden; } .header-navigation nav ul { border-right: 1px solid #dd4814; float: right; } .header-navigation nav li { border-left: 1px solid #dd4814; float: left; height: 54px; } .header-navigation nav a { padding: 18px 14px 0; font-size: 14px; display: block; height: 36px; } .header-navigation nav a:hover { background-color: #fcece7; } .header-navigation nav .current_page_item a, .header-navigation nav .current_page_parent a, .header-navigation nav .current_page_ancestor a { background-color: #dd4814; color: #fff; } .header-navigation input { margin: 12px 10px 0 10px; padding: 5px; border-top: 1px solid #a1a1a1; border-right: 1px solid #e0e0e0; border-bottom: 1px solid #fff; border-left: 1px solid #e0e0e0; width: 90px; font-style: italic; color: #ccc; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; -moz-box-shadow: inset 0 1px 1px #e0e0e0; -webkit-box-shadow: inset 0 1px 1px #e0e0e0; box-shadow: inset 0 1px 1px #e0e0e0; } .header-navigation h2 { margin: 18px 0 0 6px; text-transform: lowercase; font-size: 22px; color: #dd4814; float: left; } .header-navigation .logo-ubuntu { margin-top: 12px; float: left; } .header-content .header-navigation-secondary { margin-bottom: 40px; padding: 0; position: relative; z-index: 2; } .header-navigation-secondary div { padding: 0; border: 2px solid #dd4814; -moz-border-radius: 0px 0px 4px 4px; -webkit-border-radius: 0px 0px 4px 4px; border-radius: 0px 0px 4px 4px; background: #fff; border-top: 0px; width: 936px; } .header-navigation-secondary nav li { float: left; } .header-navigation-secondary nav li a { color: #333; display: block; height: 25px; padding: 8px 8px 0; } .header-navigation-secondary nav li:hover, .header-navigation-secondary nav .current_page_item a { background: url("../img/sec-nav-hover.gif"); } .header-content { padding-bottom: 30px; border-bottom: 1px solid #e0e0e0; -moz-box-shadow: 0 1px 3px #e0e0e0; -webkit-box-shadow: 0 1px 3px #e0e0e0; box-shadow: 0 1px 3px #e0e0e0; margin-bottom: 3px; position: relative; overflow: hidden; } footer { padding: 10px 10px 40px 10px; position: relative; -moz-border-radius: 0 0 4px 4px; -webkit-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; font-size: 12px; background: url("../img/background-footer.png") repeat scroll 0 0 #f7f6f5; } footer div { margin: 0 auto; padding: 0 10px; width: 940px; } footer a { color: #000; } footer nav ul { margin: 10px 17px 30px 0; width: 172px; display: inline-block; vertical-align: top; height: auto; zoom: 1; *display: inline; } footer nav ul.last { margin-right: 0; } footer nav li { margin-bottom: 8px; } footer nav li:first-child { font-weight: bold; } footer p { margin-bottom: 0; } #content { padding-top: 35px; } .arrow-nav { display: none; position: absolute; top: -1px; z-index: 3; } .shadow { margin: 30px 0 3px 0; border-bottom: 1px solid #e0e0e0; -moz-box-shadow: 0 2px 3px #e0e0e0; -webkit-box-shadow: 0 2px 3px #e0e0e0; box-shadow: 0 2px 3px #e0e0e0; height: 3px; } /** * @section Site-wide */ #content h2{ font-size:24px; } .box-orange { padding: 10px; border: 3px solid #dd4814; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } .box-orange .link-action-small { float: right; margin: 0 0 0 20px; } .link-bug { margin-left: 10px; color: #999; } .link-action { float: left; margin-bottom: 20px; padding: 8px 12px; display: block; background-color: #dd4814; color: #fff; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; font-size: 16px; line-height: 1.3; border-top: 3px solid #e6633a; border-bottom: 3px solid #c03d14; } .link-action2 { float: left; display: block; color: #fff; font-size: 16px; line-height: 1.3; } .link-action2 span{ display:block; float:left; } .link-action2 .cta-left{ background:url(../img/button-cta-left.png) no-repeat; width:22px; height:48px; } .link-action2 .cta-center{ background:url(../img/button-cta-slice.png) repeat-x; line-height:45px; height:48px; } .link-action2 .cta-right{ background:url(../img/button-cta-right.png) no-repeat; width:22px; height:48px; } .link-action-small { float: left; display: block; color: #fff; font-size: 16px; } .link-action-small span{ display:block; float:left; height:42px; } .link-action-small .cta-left{ background:url(../img/button-cta-left-small.png) no-repeat; width:19px; } .link-action-small .cta-center{ background:url(../img/button-cta-slice-small.png) repeat-x; line-height:42px; } .link-action-small .cta-right{ background:url(../img/button-cta-right-small.png) no-repeat; width:19px; } .link-action:active { position: relative; top: 1px; } .link-action2:active { position: relative; top: 1px; } .link-action-small:active { position: relative; top: 1px; } .list-bullets li { margin-bottom: 10px; list-style: disc; list-style-position: inside; } .box { margin-bottom: 30px; padding: 15px; border: 1px solid #aea79f; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } .box-padded { margin-bottom: 30px; padding: 5px; border: 2px solid #aea79f; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; background: url("../img/pattern-featured.gif") repeat scroll 0 0 #ebe9e7; overflow: hidden; } .box-padded h3 { margin: 5px 0 10px 5px; } .box-padded div { padding: 10px; border: 1px solid #aea79f; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; background-color: #fff; overflow: hidden; } .box-padded li { padding: 0 10px; float: left; width: 211px; border-right: 1px dotted #aea79f; } .box-padded li.first { padding: 0; margin-bottom: 0; } .box-padded li.last { border: 0; width: 217px; } .box-padded img { margin: 0 10px 50px 0; float: left; -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; } .box-clear { margin-bottom: 40px; } .box-clear .grid-4.first { margin-right: 15px; padding-right: 15px; } .box-clear .grid-4 { margin-left: 0; margin-right: 10px; padding-right: 10px; width: 298px; } .box-clear time { display: block; border-bottom: 1px dotted #aea79f; padding-bottom: 10px; margin-bottom: 10px; } .box-clear div.first { border-right: 1px dotted #aea79f; } .box-clear a { display: block; } .box-clear .rss { background: url("../img/rss.jpg") no-repeat scroll 0 center; padding-left: 20px; } .box-clear .location { display: block; margin-bottom: 1px; } .box-clear .last { margin: 0; padding-right: 0; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; width: 293px; } /* Widgets */ .ui-state-focus { outline: none; } .ui-accordion { border-bottom: 1px dotted #aea79f; } .ui-accordion a { display: block; } .ui-accordion h3 { margin-bottom: 0; border-top: 1px dotted #aea79f; position: relative; font-size: 13px; font-weight: bold; } .ui-accordion h3 a { padding: 10px 0; color: #333; } .ui-accordion h4 { margin-bottom: 5px; } .ui-accordion div fieldset { padding-bottom: 5px; } .ui-accordion div li, .ui-accordion div input { margin-bottom: 10px; } .ui-accordion .ui-icon { position: absolute; top: 15px; right: 0; display: block; width: 8px; height: 8px; background: url("../img/icon-accordion-inactive.png") 0 0 no-repeat transparent; } .ui-accordion .ui-state-active .ui-icon { background-image: url("../img/icon-accordion-active.png"); } .ui-accordion .current_page_item a { color: #333; } .container-tweet { -moz-border-radius: 4px 4px 4px 4px; -webkit-border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px; padding: 10px 10px 10px; background-color: #f7f7f7; } .container-tweet .tweet-follow { margin-top: 10px; margin-bottom: -10px; padding-left: 55px; padding-bottom: 6px; background: url("../img/tweet-follow.png") 0 5px no-repeat; display: block; } .container-tweet .tweet-follow span { font-size: 16px; font-weight: bold; line-height: 1.2; display: block; } .tweet a { display: inline; } .tweet .tweet_text { padding: 10px; background-color: #fff; -moz-border-radius: 4px 4px 4px 4px; -webkit-border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px; border: 1px solid #dd4814; font-size: 16px; display: block; clear: both; } .tweet.tweet-small .tweet_text { font-size: inherit; } .tweet .tweet_text a { color: #333; } .tweet .tweet_time, .tweet .tweet_user_and_time { padding: 15px 0 10px 0; position: relative; top: -2px; background: url("../img/tweet-arrow.png") no-repeat; display: block; } .tweet .tweet_odd .tweet_time, .tweet .tweet_odd .tweet_user_and_time { background-position: right 0; float: right; } .tweet .tweet_even .tweet_time, .tweet .tweet_even .tweet_user_and_time { background-position: left 0; float: left; } /* Search */ #content .list-search li { list-style-type:none; border:0px; margin-bottom: 15px; padding-top: 15px; } /* Blog */ .blog-article #nav-single { margin-top: 30px; margin-bottom: 30px; } .blog-article #nav-single .nav-next { float: right; } .blog-article article header .entry-meta { margin-bottom: 20px; } .blog-article article .entry-meta { color: #999; } .blog-article #respond form input[type="submit"] { float: left; cursor: pointer; margin-bottom: 20px; padding: 8px 12px; display: block; background-color: #dd4814; color: #fff; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; font-size: 16px; line-height: 1.3; border-top: 3px solid #e6633a; border-left: 3px solid #e6633a; border-right: 3px solid #e6633a; border-bottom: 3px solid #c03d14; } .blog-article #respond form input[type="submit"]:active { position: relative; top: 1px; } .alignnone{ float:left; margin:10px 20px 10px 0; } .alignleft{ float:left; margin:10px 20px 10px 0; } .alignright{ float:right; margin:10px 0 10px 20px; } .aligncenter{ float:left; margin:10px 20px 10px 0; } .entry-content h2, .entry-content h3{ margin-top:20px; } .entry-content ul li{ list-style-type: circle; margin-left:16px; } .entry-content hr{ border:none; border-top: 1px dotted #AEA79F; } ././@LongLink0000000000000000000000000000015000000000000011211 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/ubuntu-appdev-site-header.qdocconfubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/ubuntu-appdev-site-header.qdocc0000644000015201777760000000340012315270143033575 0ustar pbusernogroup00000000000000HTML.postheader = \ "
\n" \ "
\n" \ " \n" \ "
\n" \ "
\n" \ "
\n" \ " \n" \ " \"Ubuntu\n" \ "

App Developer

\n" \ "
\n" \ "
\n" \ " \n" \ "
\n" \ "
\n" \ "
\n" ././@LongLink0000000000000000000000000000015400000000000011215 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/online-accounts-client-common.qdocconfubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/online-accounts-client-common.q0000644000015201777760000000116012315270143033621 0ustar pbusernogroup00000000000000#include(compat.qdocconf) project = OnlineAccountsClient QML API description = QML API for invoking the online accounts panel outputdir = html outputformats = HTML headerdirs = ../OnlineAccountsClient sourcedirs = ../OnlineAccountsClient sources.fileextensions = "*.qml *.qdoc *.cpp" exampledirs = ./examples imagedirs = ./images HTML.templatedir = . HTML.nobreadcrumbs = "true" HTML.stylesheets = qtquick.css HTML.headerstyles = " \n" HTML.endheader = "\n" HTML.footer = "
Copyright (C) 2013 Canonical Ltd.
\n" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/qtquick.css0000644000015201777760000003175112315270143030000 0ustar pbusernogroup00000000000000@media screen { /* basic elements */ html { color: #000000; background: #FFFFFF; } table { border-collapse: collapse; border-spacing: 0; } fieldset, img { border: 0; max-width:100%; } address, caption, cite, code, dfn, em, strong, th, var, optgroup { font-style: inherit; font-weight: inherit; } del, ins { text-decoration: none; } ol li { list-style: decimal; } ul li { list-style: none; } caption, th { text-align: left; } h1.title { font-weight: bold; font-size: 150%; } h0 { font-weight: bold; font-size: 130%; } h1, h2, h3, h4, h5, h6 { font-size: 100%; } q:before, q:after { content: ''; } abbr, acronym { border: 0; font-variant: normal; } sup, sub { vertical-align: baseline; } tt, .qmlreadonly span, .qmldefault span { word-spacing:0.5em; } legend { color: #000000; } strong { font-weight: bold; } em { font-style: italic; } body { margin: 0 1.5em 0 1.5em; font-family: ubuntu; line-height: normal } a { color: #00732F; text-decoration: none; } hr { background-color: #E6E6E6; border: 1px solid #E6E6E6; height: 1px; width: 100%; text-align: left; margin: 1.5em 0 1.5em 0; } pre { border: 1px solid #DDDDDD; -moz-border-radius: 0.7em 0.7em 0.7em 0.7em; -webkit-border-radius: 0.7em 0.7em 0.7em 0.7em; border-radius: 0.7em 0.7em 0.7em 0.7em; padding: 1em 1em 1em 1em; overflow-x: auto; } table, pre { -moz-border-radius: 0.7em 0.7em 0.7em 0.7em; -webkit-border-radius: 0.7em 0.7em 0.7em 0.7em; border-radius: 0.7em 0.7em 0.7em 0.7em; background-color: #F6F6F6; border: 1px solid #E6E6E6; border-collapse: separate; margin-bottom: 2.5em; } pre { font-size: 90%; display: block; overflow:hidden; } thead { margin-top: 0.5em; font-weight: bold } th { padding: 0.5em 1.5em 0.5em 1em; background-color: #E1E1E1; border-left: 1px solid #E6E6E6; } td { padding: 0.25em 1.5em 0.25em 1em; } td.rightAlign { padding: 0.25em 0.5em 0.25em 1em; } table tr.odd { border-left: 1px solid #E6E6E6; background-color: #F6F6F6; color: black; } table tr.even { border-left: 1px solid #E6E6E6; background-color: #ffffff; color: #202020; } div.float-left { float: left; margin-right: 2em } div.float-right { float: right; margin-left: 2em } span.comment { color: #008B00; } span.string, span.char { color: #000084; } span.number { color: #a46200; } span.operator { color: #202020; } span.keyword { color: #840000; } span.name { color: black } span.type { font-weight: bold } span.type a:visited { color: #0F5300; } span.preprocessor { color: #404040 } /* end basic elements */ /* font style elements */ .heading { font-weight: bold; font-size: 125%; } .subtitle { font-size: 110% } .small-subtitle { font-size: 100% } .red { color:red; } /* end font style elements */ /* global settings*/ .header, .footer { display: block; clear: both; overflow: hidden; } /* end global settings*/ /* header elements */ .header .qtref { color: #00732F; font-weight: bold; font-size: 130%; } .header .content { margin-left: 5px; margin-top: 5px; margin-bottom: 0.5em; } .header .breadcrumb { font-size: 90%; padding: 0.5em 0 0.5em 1em; margin: 0; background-color: #fafafa; height: 1.35em; border-bottom: 1px solid #d1d1d1; } .header .breadcrumb ul { margin: 0; padding: 0; } .header .content { word-wrap: break-word; } .header .breadcrumb ul li { float: left; background: url(../images/breadcrumb.png) no-repeat 0 3px; padding-left: 1.5em; margin-left: 1.5em; } .header .breadcrumb ul li.last { font-weight: normal; } .header .breadcrumb ul li a { color: #00732F; } .header .breadcrumb ul li.first { background-image: none; padding-left: 0; margin-left: 0; } .header .content ol li { background: none; margin-bottom: 1.0em; margin-left: 1.2em; padding-left: 0 } .header .content li { background: url(../images/bullet_sq.png) no-repeat 0 5px; margin-bottom: 1em; padding-left: 1.2em; } /* end header elements */ /* content elements */ .content h1 { font-weight: bold; font-size: 130% } .content h2 { font-weight: bold; font-size: 120%; width: 100%; } .content h3 { font-weight: bold; font-size: 110%; width: 100%; } .content table p { margin: 0 } .content ul { padding-left: 2.5em; } .content li { padding-top: 0.25em; padding-bottom: 0.25em; } .content ul img { vertical-align: middle; } .content a:visited { color: #4c0033; text-decoration: none; } .content a:visited:hover { color: #4c0033; text-decoration: underline; } a:hover { color: #4c0033; text-decoration: underline; } descr p a { text-decoration: underline; } .descr p a:visited { text-decoration: underline; } .alphaChar{ width:95%; background-color:#F6F6F6; border:1px solid #E6E6E6; -moz-border-radius: 7px 7px 7px 7px; border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; font-size:12pt; padding-left:10px; margin-top:10px; margin-bottom:10px; } .flowList{ /*vertical-align:top;*/ /*margin:20px auto;*/ column-count:3; -webkit-column-count:3; -moz-column-count:3; /* column-width:100%; -webkit-column-width:200px; -col-column-width:200px; */ column-gap:41px; -webkit-column-gap:41px; -moz-column-gap:41px; column-rule: 1px dashed #ccc; -webkit-column-rule: 1px dashed #ccc; -moz-column-rule: 1px dashed #ccc; } .flowList dl{ } .flowList dd{ /*display:inline-block;*/ margin-left:10px; min-width:250px; line-height: 1.5; min-width:100%; min-height:15px; } .flowList dd a{ } .mainContent { padding-left:5px; } .content .flowList p{ padding:0px; } .content .alignedsummary { margin: 15px; } .qmltype { text-align: center; font-size: 120%; } .qmlreadonly { padding-left: 5px; float: right; color: #254117; } .qmldefault { padding-left: 5px; float: right; color: red; } .qmldoc { } .generic .alphaChar{ margin-top:5px; } .generic .odd .alphaChar{ background-color: #F6F6F6; } .generic .even .alphaChar{ background-color: #FFFFFF; } .memItemRight{ padding: 0.25em 1.5em 0.25em 0; } .highlightedCode { margin: 1.0em; } .annotated td { padding: 0.25em 0.5em 0.25em 0.5em; } .toc { font-size: 80% } .header .content .toc ul { padding-left: 0px; } .content .toc h3 { border-bottom: 0px; margin-top: 0px; } .content .toc h3 a:hover { color: #00732F; text-decoration: none; } .content .toc .level2 { margin-left: 1.5em; } .content .toc .level3 { margin-left: 3.0em; } .content ul li { background: url(../images/bullet_sq.png) no-repeat 0 0.7em; padding-left: 1em } .content .toc li { background: url(../images/bullet_dn.png) no-repeat 0 5px; padding-left: 1em } .relpage { -moz-border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; border-radius: 7px 7px 7px 7px; border: 1px solid #DDDDDD; padding: 25px 25px; clear: both; } .relpage ul { float: none; padding: 1.5em; } h3.fn, span.fn { -moz-border-radius:7px 7px 7px 7px; -webkit-border-radius:7px 7px 7px 7px; border-radius:7px 7px 7px 7px; background-color: #F6F6F6; border-width: 1px; border-style: solid; border-color: #E6E6E6; font-weight: bold; word-spacing:3px; padding:3px 5px; } .functionIndex { font-size:12pt; word-spacing:10px; margin-bottom:10px; background-color: #F6F6F6; border-width: 1px; border-style: solid; border-color: #E6E6E6; -moz-border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; border-radius: 7px 7px 7px 7px; width:100%; } .centerAlign { text-align:center; } .rightAlign { text-align:right; } .leftAlign { text-align:left; } .topAlign{ vertical-align:top } .functionIndex a{ display:inline-block; } /* end content elements */ /* footer elements */ .footer { color: #393735; font-size: 0.75em; text-align: center; padding-top: 1.5em; padding-bottom: 1em; background-color: #E6E7E8; margin: 0; } .footer p { margin: 0.25em } .small { font-size: 0.5em; } /* end footer elements */ .item { float: left; position: relative; width: 100%; overflow: hidden; } .item .primary { margin-right: 220px; position: relative; } .item hr { margin-left: -220px; } .item .secondary { float: right; width: 200px; position: relative; } .item .cols { clear: both; display: block; } .item .cols .col { float: left; margin-left: 1.5%; } .item .cols .col.first { margin-left: 0; } .item .cols.two .col { width: 45%; } .item .box { margin: 0 0 10px 0; } .item .box h3 { margin: 0 0 10px 0; } .cols.unclear { clear:none; } } /* end of screen media */ /* start of print media */ @media print { input, textarea, .header, .footer, .toolbar, .feedback, .wrapper .hd, .wrapper .bd .sidebar, .wrapper .ft, #feedbackBox, #blurpage, .toc, .breadcrumb, .toolbar, .floatingResult { display: none; background: none; } .content { background: none; display: block; width: 100%; margin: 0; float: none; } } /* end of print media */ /* modify the TOC layouts */ div.toc ul { padding-left: 20px; } div.toc li { padding-left: 4px; } /* Remove the border around images*/ a img { border:none; } /*Add styling to the front pages*/ .threecolumn_area { padding-top: 20px; padding-bottom: 20px; } .threecolumn_piece { display: inline-block; margin-left: 78px; margin-top: 8px; padding: 0; vertical-align: top; width: 25.5%; } div.threecolumn_piece ul { list-style-type: none; padding-left: 0px; margin-top: 2px; } div.threecolumn_piece p { margin-bottom: 7px; color: #5C626E; text-decoration: none; font-weight: bold; } div.threecolumn_piece li { padding-left: 0px; margin-bottom: 5px; } div.threecolumn_piece a { font-weight: normal; } /* Add style to guide page*/ .fourcolumn_area { padding-top: 20px; padding-bottom: 20px; } .fourcolumn_piece { display: inline-block; margin-left: 35px; margin-top: 8px; padding: 0; vertical-align: top; width: 21.3%; } div.fourcolumn_piece ul { list-style-type: none; padding-left: 0px; margin-top: 2px; } div.fourcolumn_piece p { margin-bottom: 7px; color: #40444D; text-decoration: none; font-weight: bold; } div.fourcolumn_piece li { padding-left: 0px; margin-bottom: 5px; } div.fourcolumn_piece a { font-weight: normal; } ././@LongLink0000000000000000000000000000015000000000000011211 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/ubuntu-appdev-site-footer.qdocconfubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/ubuntu-appdev-site-footer.qdocc0000644000015201777760000000753012315270143033653 0ustar pbusernogroup00000000000000HTML.footer = \ "
\n" \ "
\n" \ "\n" \ "\n" \ "\n" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/doc/online-accounts-client.qdocconf0000644000015201777760000000052512315270143033673 0ustar pbusernogroup00000000000000include(online-accounts-client-common.qdocconf) HTML.templatedir = . HTML.nobreadcrumbs = "true" HTML.stylesheets = doc/qtquick.css HTML.headerstyles = " \n" HTML.endheader = "\n" HTML.footer = "
Copyright (C) 2013 Canonical Ltd.
\n" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/examples/0000755000015201777760000000000012315270412026646 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/examples/CreateFacebook.qml0000644000015201777760000000050712315270143032221 0ustar pbusernogroup00000000000000import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.OnlineAccounts.Client 0.1 Rectangle { width: 400 height: 300 Button { anchors.centerIn: parent text: "Create Facebook account" onClicked: setup.exec() } Setup { id: setup providerId: "facebook" } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/module/0000755000015201777760000000000012315270412026315 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/module/qmldir.in0000644000015201777760000000004512315270143030135 0ustar pbusernogroup00000000000000module $${API_URI} plugin $${TARGET} ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/module/plugin.h0000644000015201777760000000233212315270143027765 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of OnlineAccountsClient. * * OnlineAccountsClient is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * OnlineAccountsClient 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OnlineAccountsClient. If not, see * . */ #ifndef ONLINE_ACCOUNTS_CLIENT_PLUGIN_H #define ONLINE_ACCOUNTS_CLIENT_PLUGIN_H #include namespace OnlineAccountsClient { class Plugin: public QQmlExtensionPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") public: void registerTypes(const char *uri); }; }; // namespace #endif // ONLINE_ACCOUNTS_CLIENT_PLUGIN_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/module/module.pro0000644000015201777760000000212212315270143030322 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) include($${TOP_SRC_DIR}/common-vars.pri) TEMPLATE = lib TARGET = OnlineAccountsClient API_URI = "Ubuntu.OnlineAccounts.Client" API_VER = 0.1 DESTDIR = $$replace(API_URI, \\., /).$$API_VER PLUGIN_INSTALL_BASE = $$[QT_INSTALL_QML]/$${DESTDIR} CONFIG += \ plugin \ qt QT += qml # Error on undefined symbols QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF SOURCES = \ plugin.cpp HEADERS += \ plugin.h INCLUDEPATH += \ $$TOP_SRC_DIR/client QMAKE_LIBDIR = $${TOP_BUILD_DIR}/client/OnlineAccountsClient LIBS += -lonline-accounts-client QMLDIR_FILES += qmldir QMAKE_SUBSTITUTES += qmldir.in OTHER_FILES += qmldir.in copy2build.output = $${DESTDIR}/${QMAKE_FILE_IN} copy2build.input = QMLDIR_FILES copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} copy2build.name = COPY ${QMAKE_FILE_IN} copy2build.variable_out = PRE_TARGETDEPS copy2build.CONFIG += no_link QMAKE_EXTRA_COMPILERS += copy2build target.path = $${PLUGIN_INSTALL_BASE} INSTALLS += target qmldir.files = qmldir qmldir.path = $${PLUGIN_INSTALL_BASE} INSTALLS += qmldir ubuntu-system-settings-online-accounts-0.3+14.04.20140328/client/module/plugin.cpp0000644000015201777760000000215112315270143030317 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of OnlineAccountsClient. * * OnlineAccountsClient is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * OnlineAccountsClient 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OnlineAccountsClient. If not, see * . */ #include "plugin.h" #include #include #include using namespace OnlineAccountsClient; void Plugin::registerTypes(const char *uri) { qDebug() << Q_FUNC_INFO << uri; qmlRegisterType(uri, 0, 1, "Setup"); } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/INSTALL0000644000015201777760000000003612315270143024603 0ustar pbusernogroup00000000000000qmake make sudo make install ubuntu-system-settings-online-accounts-0.3+14.04.20140328/common-project-config.pri0000644000015201777760000000410012315270143030461 0ustar pbusernogroup00000000000000#----------------------------------------------------------------------------- # Common configuration for all projects. #----------------------------------------------------------------------------- # we don't like warnings... QMAKE_CXXFLAGS += -Werror # Disable RTTI QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti TOP_SRC_DIR = $$PWD TOP_BUILD_DIR = $${TOP_SRC_DIR}/$(BUILD_DIR) include(coverage.pri) #----------------------------------------------------------------------------- # setup the installation prefix #----------------------------------------------------------------------------- INSTALL_PREFIX = /usr # default installation prefix # default prefix can be overriden by defining PREFIX when running qmake isEmpty(PREFIX) { message("====") message("==== NOTE: To override the installation path run: `qmake PREFIX=/custom/path'") message("==== (current installation path is `$${INSTALL_PREFIX}')") } else { INSTALL_PREFIX = $${PREFIX} message("====") message("==== install prefix set to `$${INSTALL_PREFIX}'") } INSTALL_LIBDIR = $${INSTALL_PREFIX}/lib isEmpty(LIBDIR) { message("====") message("==== NOTE: To override the library installation path run: `qmake LIBDIR=/custom/path'") message("==== (current installation path is `$${INSTALL_LIBDIR}')") } else { INSTALL_LIBDIR = $${LIBDIR} message("====") message("==== install prefix set to `$${INSTALL_LIBDIR}'") } ONLINE_ACCOUNTS_PLUGIN_DIR_BASE = share/accounts/qml-plugins ONLINE_ACCOUNTS_PLUGIN_DIR = $${INSTALL_PREFIX}/$${ONLINE_ACCOUNTS_PLUGIN_DIR_BASE} PLUGIN_MANIFEST_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_manifest_dir SystemSettings") PLUGIN_MODULE_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_module_dir SystemSettings") PLUGIN_QML_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_qml_dir SystemSettings") PLUGIN_PRIVATE_MODULE_DIR = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable plugin_private_module_dir SystemSettings") ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/0000755000015201777760000000000012315270412024170 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ar.po0000644000015201777760000000472312315270143025141 0ustar pbusernogroup00000000000000# Arabic translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-03 19:50+0000\n" "Last-Translator: Ibrahim Saed \n" "Language-Team: Arabic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "اسم المستخدم" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "كلمة السر" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "إضافة حساب..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "تخزين تفاصيل الحساب هنا يتيح للتطبيقات استخدام الحسابات دون الحاجة للولوج " "لكل تطبيق." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "إضافة حساب" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "لا حسابات" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "إضافة حساب:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "إلغاء" #: ../src/module/Options.qml:36 msgid "ID" msgstr "المعرّف" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "إزالة حساب..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "أزِل الحساب" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "سيُحذف حساب \"%1\" من هاتفك فقط. يمكنك إضافته مُجددا في وقت لاحق." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "أزِل" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "الوصول إلى هذا الحساب:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "الحسابات" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/gl.po0000644000015201777760000000445612315270143025144 0ustar pbusernogroup00000000000000# Galician translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-01 15:27+0000\n" "Last-Translator: Marcos Lans \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nome de usuario" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Contrasinal" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Engadir unha conta..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Gardando aquí a información da conta permitirá que os aplicativos non teñan " "que iniciar sesión de cada vez." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Engadir conta" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Non hai contas" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Engadir conta:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Cancelar" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Eliminar conta..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Eliminar esta conta" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "A conta %1 eliminarase só do teléfono. Pode engadila de novo noutro momento." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Eliminar" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Acceder a esta conta:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Contas" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/br.po0000644000015201777760000000455412315270143025144 0ustar pbusernogroup00000000000000# Breton translation for ubuntu-system-settings-online-accounts # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-03-11 15:58+0000\n" "Last-Translator: Fohanno Thierry \n" "Language-Team: Breton \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Anv implijer" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Ger-tremen" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Ouzhpennañ ur gont…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Mirout munudoù ar gont amañ a lez an arloadoù da ober gant ar c'hontoù anez " "goulenn diganeoc'h kevreañ evit pep arload." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Ouzhpennañ ur gont" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Kont ebet" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Ouzhpennañ ur gont :" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Nullañ" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Dilemel ar gont..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Dilemel ar gont" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Ar gont %1 a vo dilamet diwar ho pellgomzer nemetken. Gallout a reoc'h " "adlakaat anezhi diwezhatoc'h." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Dilemel" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Mont d'ar gont-mañ :" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Kontoù" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/km.po0000644000015201777760000000574712315270143025155 0ustar pbusernogroup00000000000000# Khmer translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-11 04:23+0000\n" "Last-Translator: Khoem Sokhem \n" "Language-Team: Khmer \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "ឈ្មោះ​អ្នក​ប្រើ" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "ពាក្យសម្ងាត់" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "បន្ថែម​គណនី…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "រក្សាទុក​ព័ត៌មាន​លម្អិត​គណនី​នៅ​ទីនេះ " "អនុញ្ញាត​ឲ្យ​កម្មវិធី​ប្រើ​គណនី​ដោយ​មិន​ចាំបាច់​ឲ្យ​អ្នក​ចូល​សម្រាប់​កម្មវិធី" "​នីមួយៗ។" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "បន្ថែម​គណនី" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "គ្មាន​គណនី" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "បន្ថែម​គណនី៖" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "បោះ​បង់" #: ../src/module/Options.qml:36 msgid "ID" msgstr "លេខ​សម្គាល់" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "លុប​គណនី…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "លុប​គណនី" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "គណនី %1 នឹង​ត្រូវ​បាន​លុប​តែ​ពី​ទូរស័ព្ទ​របស់​អ្នក​ប៉ុណ្ណោះ។ " "អ្នក​អាច​បន្ថែម​ម្ដង​ទៀត​ពេល​ក្រោយ។" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "លុប​ចេញ" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "ចូល​គណនី​នេះ៖" #: ../.build/settings.js:1 msgid "Accounts" msgstr "គណនី" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/sl.po0000644000015201777760000000446012315270143025153 0ustar pbusernogroup00000000000000# Slovenian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-02 10:58+0000\n" "Last-Translator: Damir Jerovšek \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Uporabniško ime" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Geslo" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Dodaj račun ..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Shranitev podatkov računa tukaj omogoči programom uporabo računov, zato se " "Vam ni potrebno prijaviti za vsak program." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Dodaj račun" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Ni računov" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Dodaj račun:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Prekliči" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Odstrani račun ..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Odstrani račun" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Račun %1 bo odstranjen samo iz vašega telefona. Kasneje ga lahko spet dodate." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Odstrani" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Dostop do tega računa:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Računi" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/tr.po0000644000015201777760000000453112315270143025161 0ustar pbusernogroup00000000000000# Turkish translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 15:07+0000\n" "Last-Translator: Volkan Gezer \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Kullanıcı adı" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Parola" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Hesap ekle..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Hesap bilgilerinizi buraya kaydettiğinizde, her uygulama için tekrar oturum " "açmanızı önlemek üzere uygulamaların hesapları kullanabilmesini " "sağlayabilirsiniz." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Hesap ekle" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Hesap yok" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Hesap ekle:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "İptal" #: ../src/module/Options.qml:36 msgid "ID" msgstr "Kimlik" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Hesap kaldır..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Hesabı kaldır" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "%1 hesabı sadece telefonunuzdan kaldırılacaktır. Daha sonra tekrar " "ekleyebilirsiniz." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Kaldır" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Bu hesaba erişim:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Hesaplar" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/zh_TW.po0000644000015201777760000000447612315270143025577 0ustar pbusernogroup00000000000000# Chinese (Traditional) translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 16:07+0000\n" "Last-Translator: Cheng-Chia Tseng \n" "Language-Team: Chinese (Traditional) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "使用者名稱" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "密碼" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "加入帳號..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "你可以在這裡儲存帳號細節供各程式使用帳號資訊,你就不需要各自為每個程式登入。" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "加入帳號" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "沒有帳號" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "加入帳號:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "取消" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "移除帳號..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "移除帳號" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "%1 帳號只會從你的手機中移除。你往後仍可再將它加回來。" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "移除" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "存取此帳號的有:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "帳號" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/my.po0000644000015201777760000000462412315270143025164 0ustar pbusernogroup00000000000000# Burmese translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-09 11:28+0000\n" "Last-Translator: Pyae Sone \n" "Language-Team: Burmese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "သုံးစွသူအမည်" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "စကားဝှက်" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "အကောင့်ထည့်မည်" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "အကောင့်ပေါင်းထည့်မည်" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "အကောင့်များမရှိပါ" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "အကောင့်ပေါင်းထည့်မည်-" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "ပယ်ဖျက်မည်" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "အကောင့်ကိုပယ်ဖျက်မည်" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "အကောင့်ကိုဖြုတ်မည်" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "ဖယ်ရှား" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "အကောင့်များ" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/hu.po0000644000015201777760000000463612315270143025156 0ustar pbusernogroup00000000000000# Hungarian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 08:51+0000\n" "Last-Translator: Kristóf Kiszel \n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Felhasználónév" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Jelszó" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Fiók hozzáadása…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "A fiókadatok tárolása lehetővé teszi az alkalmazásoknak a fiókok használatát " "anélkül, hogy be kellene jelentkeznie minden egyes alkalmazásba." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Fiók hozzáadása" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Nincsenek fiókok" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Fiók hozzáadása:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Mégsem" #: ../src/module/Options.qml:36 msgid "ID" msgstr "Azonosító" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Fiók eltávolítása…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Fiók eltávolítása" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "A(z) %1 fiók eltávolításra kerül a telefonjából. Később bármikor újra " "hozzáadhatja." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Eltávolítás" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Hozzáférés ehhez a fiókhoz:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Fiókok" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/cs.po0000644000015201777760000000454512315270143025146 0ustar pbusernogroup00000000000000# Czech translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-01-02 12:52+0000\n" "Last-Translator: Ondra Kadlec \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Uživatelské jméno" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Heslo" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Přidat účet..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Uložení podrobností účtů umožňuje aplikacím používat vaše účty, aniž byste " "se museli pokaždé přihlašovat do každé aplikace zvlášť." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Přidat účet" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Žádné účty" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Přidat účet:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Zrušit" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Odebrat účet..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Odebrat účet" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Účet %1 bude odebrán pouze z vašeho telefonu. Můžete jej přidat později " "znovu." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Odebrat" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Přístup k tomuto účtu:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Účty" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/zh_CN.po0000644000015201777760000000442012315270143025532 0ustar pbusernogroup00000000000000# Chinese (Simplified) translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-11-03 08:49+0000\n" "Last-Translator: Anthony Wong \n" "Language-Team: Chinese (Simplified) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "用户名" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "密码" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "添加帐户…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "在这里保存帐户信息,以便不需每次登录即可让应用程序使用您的帐户。" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "添加帐户" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "无帐户" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "添加账户:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "取消" #: ../src/module/Options.qml:36 msgid "ID" msgstr "标识" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "删除帐户..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "移除帐户" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "帐户%1 仅在手机中移除。以后还可重新添加。" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "移除" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "访问该帐户:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "帐户" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/nl.po0000644000015201777760000000456312315270143025152 0ustar pbusernogroup00000000000000# Dutch translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 14:11+0000\n" "Last-Translator: Hannie Dumoleyn \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Gebruikersnaam" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Wachtwoord" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Account toevoegen…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Door hier accountgegevens op te slaan, kunnen toepassingen de accounts " "gebruiken zonder dat u zich voor elke toepassing apart hoeft aan te melden." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Account toevoegen" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Geen accounts" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Account toevoegen:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Annuleren" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Account verwijderen…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Account verwijderen" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "De %1-account zal alleen van uw telefoon verwijderd worden. U kunt deze " "later weer toevoegen." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Verwijderen" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Toegang tot deze account:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Accounts" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/en_AU.po0000644000015201777760000000446312315270143025527 0ustar pbusernogroup00000000000000# English (Australia) translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-27 06:40+0000\n" "Last-Translator: Jackson Doak \n" "Language-Team: English (Australia) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "User name" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Password" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Add account…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Add account" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "No accounts" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Add account:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Cancel" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Remove account…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Remove account" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "The %1 account will be removed only from your phone. You can add it again " "later." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Remove" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Access to this account:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Accounts" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/lv.po0000644000015201777760000000404612315270143025156 0ustar pbusernogroup00000000000000# Latvian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-01-11 17:04+0000\n" "Last-Translator: Jānis-Marks Gailis \n" "Language-Team: Latvian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Lietotāja vārds" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Parole" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Pievienot kontu…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Pievienot kontu" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Atcelt" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Noņemt kontu..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ta.po0000644000015201777760000000601712315270143025141 0ustar pbusernogroup00000000000000# Tamil translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-24 10:24+0000\n" "Last-Translator: Thangamani Arun - தங்கமணி அருண் \n" "Language-Team: Tamil \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "பயனர் பெயர்" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "கடவுச்சொல்" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "கணக்கை சேர்க்க..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "ஒவ்வொரு பயன்பாட்டிலும் உள்நுழையாமல் உங்களுடைய கணக்கின் விவரங்களை " "சேமிப்பதின் மூலம் பயன்பாடுகள் அதை பயன்படுத்தி உள்நுழையலாம்." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "கணக்கை சேர்" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "கணக்குகள் இல்லை" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "கணக்கை சேர்:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "ரத்துசெய்" #: ../src/module/Options.qml:36 msgid "ID" msgstr "அடையாளம்" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "கணக்கை நீக்கு..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "கணக்கை நீக்கு" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "உங்களுடைய தொலைபேசியிலிருந்து மட்டுமே இந்த %1 கணக்கை நீக்கலாம். நீங்க இதை " "பிறகு சேர்க்கவும்." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "நீக்கு" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "இந்த கணக்கின் அனுகல்:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "கணக்குகள்" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ast.po0000644000015201777760000000452712315270143025330 0ustar pbusernogroup00000000000000# Asturian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-02-06 20:02+0000\n" "Last-Translator: Xuacu Saturio \n" "Language-Team: Asturian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nome d'usuariu" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Contraseña" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Amestar cuenta…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Guardar equí la información de la cuenta permitirá que les aplicaciones la " "usen ensin tener qu'aniciar sesión con caúna d'elles." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Amestar cuenta" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Nun hai cuentes" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Amestar cuenta:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Encaboxar" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Desaniciar cuenta..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Desaniciar cuenta" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "La cuenta %1 desaniciaráse sólo del teléfonu. Pue volver a amestala más sero." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Desaniciar" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Entrar a esta cuenta:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Cuentes" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/fi.po0000644000015201777760000000447612315270143025142 0ustar pbusernogroup00000000000000# Finnish translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 08:54+0000\n" "Last-Translator: Jiri Grönroos \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Käyttäjätunnus" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Salasana" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Lisää tili…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Tilitietojen tallennus tänne mahdollistaa sovellusten käyttää tilejä ilman, " "että joudut kirjautua tileillesi jokaisessa sovelluksessa erikseen." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Lisää tili" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Ei tilejä" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Lisää tili:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Peru" #: ../src/module/Options.qml:36 msgid "ID" msgstr "" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Poista tili…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Poista tili" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "%1-tili poistetaan ainoastaan puhelimestasi. Voit lisätä sen myöhemmin " "uudelleen." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Poista" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Pääsy tälle tilille:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Tilit" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/fr_CA.po0000644000015201777760000000400512315270143025502 0ustar pbusernogroup00000000000000# French (Canada) translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-13 12:44+0000\n" "Last-Translator: Étienne Beaulé \n" "Language-Team: French (Canada) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Mot de Passe" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Annuler" #: ../src/module/Options.qml:36 msgid "ID" msgstr "Identification" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/de.po0000644000015201777760000000455712315270143025134 0ustar pbusernogroup00000000000000# German translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-15 20:11+0000\n" "Last-Translator: Phillip Sz \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Benutzername" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Passwort" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Konto hinzufügen …" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Das Speichern von Kontodetails an dieser Stelle erlaubt es Anwendungen das " "Konto zu benutzen, ohne das Sie sich für jede einzelne Anwendung anmelden " "müssen." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Konto hinzufügen" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Keine Konten" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Konto hinzufügen:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Abbrechen" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Konto entfernen …" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Konto entfernen" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Das %1-Konto wird nur von ihrem Telefon entfernt. Sie können es später " "wieder hinzufügen." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Entfernen" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Zugriff auf dieses Konto:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Konten" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/pl.po0000644000015201777760000000443512315270143025152 0ustar pbusernogroup00000000000000# Polish translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-13 13:23+0000\n" "Last-Translator: GTriderXC \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nazwa użytkownika" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Hasło" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Dodaj konto..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Zapamiętane tutaj dane logowania pozwolą aplikacjom logować się " "automatycznie na konta użytkownika" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Dodanie konta" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Brak kont" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Dodaj konto:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Anuluj" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Usunięcie konta..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Usuń konto" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Konto %1 zostanie usunięte tylko z telefonu. W przyszłości można je dodać " "ponownie." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Usuń" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Dostęp do tego konta:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Konta" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/pt_BR.po0000644000015201777760000000373512315270143025547 0ustar pbusernogroup00000000000000# Brazilian Portuguese translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-17 00:10+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "" #: ../src/module/Options.qml:36 msgid "ID" msgstr "" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ckb.po0000644000015201777760000000372312315270143025275 0ustar pbusernogroup00000000000000# Kurdish (Sorani) translation for ubuntu-system-settings-online-accounts # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-01-19 11:35+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kurdish (Sorani) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "" #: ../src/module/Options.qml:36 msgid "ID" msgstr "" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ru.po0000644000015201777760000000552312315270143025164 0ustar pbusernogroup00000000000000# Russian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-13 13:02+0000\n" "Last-Translator: Igor Zubarev \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Имя пользователя" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Пароль" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Добавить учётную запись…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Если вы сохраните здесь данные учётной записи, приложения смогут их " "использовать, и вам не потребуется выполнять авторизацию каждый раз при " "запуске приложений ." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Добавить учётную запись" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Нет учётных записей" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Добавить учётную запись:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Отменить" #: ../src/module/Options.qml:36 msgid "ID" msgstr "Идентификатор" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Удалить учётную запись…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Удалить учётную запись" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Учётная запись %1 будет удалена только с вашего телефона. Вы можете добавить " "её снова." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Удалить" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Доступ к этой учётной записи:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Учётные записи" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/lo.po0000644000015201777760000000532412315270143025147 0ustar pbusernogroup00000000000000# Lao translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 09:06+0000\n" "Last-Translator: Anousak \n" "Language-Team: Lao \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "ຊື່ຜູ້ໃຊ້" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "ລະຫັດຜ່ານ" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "ເພີ່ມບັນຊີ" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "ເກັບຂໍ້ມູນລາຍລະອຽດບັນຊີໃສບ່ອນນີ້ເພື່ອໃຫ້ເເອບອື່ນນໍາໃຊ້ທີ່ວ່າເຈົ້າບໍ່ຈໍາເປັນຕ້" "ອງເຊັນເຂົ້າໃນເເຕ່ລະເເອບ." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "ເພີ່ມບັນຊີ" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "ບໍ່ມີບັນຊີ" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "ເພີ່ມບັນຊີ" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "ຍົກເລີກ" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ລະຫັດ" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "ລົບບັນຊີ" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "ລຶບບັນຊີ" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "%1 ບັນຊີຈະຖຶກຍ້າຍອອກອອກຈາກພຽງແຕ່ໂທລະສັບຂອງທ່ານ" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "ຍ້າຍອອກ" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "ເຂົ້າຫາບັນຊີນີ້:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "ບັນຊີທົວໄປ" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/he.po0000644000015201777760000000466012315270143025133 0ustar pbusernogroup00000000000000# Hebrew translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 08:51+0000\n" "Last-Translator: Yaron \n" "Language-Team: Hebrew \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "שם משתמש" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "ססמה" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "הוספת חשבון…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "אחסון של פרטי חשבון באזור זה מאפשרת ליישום להשתמש בחשבונות מבלי להיכנס בנפרד " "בכל יישום." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "הוספת חשבון" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "אין חשבונות" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "הוספת חשבון:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "ביטול" #: ../src/module/Options.qml:36 msgid "ID" msgstr "מזהה" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "הסרת חשבון…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "הסרת חשבון" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "חשבון ה־%1 יוסר רק מהטלפון שלך. ניתן להוסיף אותו שוב מאוחר יותר." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "הסרה" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "גישה לחשבון זה:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "חשבונות" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ms.po0000644000015201777760000000441112315270143025150 0ustar pbusernogroup00000000000000# Malay translation for ubuntu-system-settings-online-accounts # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-01-17 09:17+0000\n" "Last-Translator: abuyop \n" "Language-Team: Malay \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nama pengguna" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Kata laluan" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Tambah akaun..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Menyimpan perincian akaun di sini membolehkan apl guna akaun tanpa perlu " "anda mendaftar masuk untuk setiap apl." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Tambah akaun" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Tiada akaun" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Tambah akaun:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Batal" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Buang akaun..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Buang akaun" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Akaun %1 akan hanya dibuang dari telefon anda. Anda boleh tambah ia kemudian " "nanti." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Buang" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Capai ke akaun ini:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Akaun" ././@LongLink0000000000000000000000000000015000000000000011211 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ubuntu-system-settings-online-accounts.potubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ubuntu-system-settings-online-accounts.0000644000015201777760000000340212315270143033772 0ustar pbusernogroup00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Canonical Ltd. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "" #: ../src/module/Options.qml:36 msgid "ID" msgstr "" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ug.po0000644000015201777760000000540412315270143025147 0ustar pbusernogroup00000000000000# Uyghur translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-15 04:26+0000\n" "Last-Translator: Gheyret T.Kenji \n" "Language-Team: Uyghur \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "ئىشلەتكۈچى ئاتى" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "ئىم" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "ھېسابات قوشۇش…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "ھېساباتنىڭ تەپسىلاتلىرىنى بۇ يەردە ساقلاپ قويسىڭىز، ئەپلەر بۇ ئۇچۇرلارنى " "ئىشلىتىپ ھېساباتلىرىڭىزنى زىيارەت قىلىدۇ. سىزنىڭ ھەر بىر ئەپتە ھېساباتقا " "كىرىشىڭىزنىڭ زۆرۈرىيىتى قالمايدۇ." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "ھېسابات قوش" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "ھېساباتلار يوق" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "ھېسابات قوشۇش:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "ئەمەلدىن قالدۇر" #: ../src/module/Options.qml:36 msgid "ID" msgstr "كىملىكى(ID)" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "ھېسابات چىقىرىۋېتىش…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "ھېساباتنى چىقىرىۋەت" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "ھېساباتنىڭ %1 تېلېفونىڭىزدىن چىقىرىۋېتىلىدۇ. ئۇنى كېيىن يەنە قوشالايسىز." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "چىقىرىۋەت" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "مەزكۇر ھېساباتنى زىيارەت قىلىش:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "ھېساباتلار" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/fa.po0000644000015201777760000000370012315270143025117 0ustar pbusernogroup00000000000000# Persian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-01-16 17:23+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Persian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "" #: ../src/module/Options.qml:36 msgid "ID" msgstr "" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ko.po0000644000015201777760000000367612315270143025156 0ustar pbusernogroup00000000000000# Korean translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-11-08 08:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Korean \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "" #: ../src/module/Options.qml:36 msgid "ID" msgstr "" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/it.po0000644000015201777760000000457512315270143025160 0ustar pbusernogroup00000000000000# Italian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-02 08:05+0000\n" "Last-Translator: Claudio Arseni \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nome utente" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Password" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Aggiungi account..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Archiviare qui i dettagli dell'account consentirà alle applicazioni di " "usarli senza la necessità di effettuare l'accesso in ogni applicazione." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Aggiungi account" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Nessun account" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Aggiungi account:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Annulla" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Rimuovi account..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Rimuovi account" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "L'account %1 verrà rimosso solo dal telefono. Sarà possibile aggiungerlo di " "nuovo in un secondo momento." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Rimuovi" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Accedere a questo account:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Account" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/shn.po0000644000015201777760000000367312315270143025332 0ustar pbusernogroup00000000000000# Shan translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-07 11:46+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Shan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "" #: ../src/module/Options.qml:36 msgid "ID" msgstr "" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "" #: ../.build/settings.js:1 msgid "Accounts" msgstr "" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/es.po0000644000015201777760000000451612315270143025146 0ustar pbusernogroup00000000000000# Spanish translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 09:54+0000\n" "Last-Translator: Adolfo Jayme \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nombre de usuario" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Contraseña" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Añadir cuenta…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Al guardar detalles de cuentas aquí, permitirá que las aplicaciones las usen " "sin que tenga que iniciar sesión en cada una." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Añadir cuenta" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "No hay cuentas" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Añadir cuenta:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Cancelar" #: ../src/module/Options.qml:36 msgid "ID" msgstr "Id." #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Eliminar cuenta…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Eliminar cuenta" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "La cuenta %1 se eliminará solo de su teléfono. Puede volver a añadirla " "después." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Eliminar" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Acceso a esta cuenta:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Cuentas" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/po.pro0000644000015201777760000000500512315270143025331 0ustar pbusernogroup00000000000000include(../common-project-config.pri) TEMPLATE = subdirs PROJECTNAME = "ubuntu-system-settings-online-accounts" SETTINGSFILES = ../src/*.settings SOURCECODE = ../plugins/*/*.qml \ ../src/*.qml \ ../src/*/*.qml BUILDDIR = ../.build SETTINGSFILETEMP = $${BUILDDIR}/settings.js message("") message(" Project Name: $$PROJECTNAME ") message(" Source Code: $$SOURCECODE ") message("") message(" Run 'make pot' to generate the pot file from source code. ") message("") ## Generate pot file 'make pot' potfile.target = pot potfile.commands = xgettext \ -o $${PROJECTNAME}.pot \ --copyright=\"Canonical Ltd. \" \ --package-name $${PROJECTNAME} \ --qt --c++ --add-comments=TRANSLATORS \ --keyword=tr --keyword=tr:1,2 --keyword=dtr:2 --from-code=UTF-8 \ $${SOURCECODE} $${SETTINGSFILETEMP} potfile.depends = settingsfiles QMAKE_EXTRA_TARGETS += potfile ## Do not use this rule directly. It's a dependency rule to ## generate an intermediate file to extract translatable ## strings from the .settings files settingsfiles.target = settingsfiles settingsfiles.commands = awk \'BEGIN { FS=\": \" }; /name/ {print \"var s = i18n.tr(\" \$$2 \");\"}\' $${SETTINGSFILES} | tr -d ',' > $${SETTINGSFILETEMP} settingsfiles.depends = makebuilddir QMAKE_EXTRA_TARGETS += settingsfiles ## Dependency rule to create the temporary build dir makebuilddir.target = makebuilddir makebuilddir.commands = mkdir -p $${BUILDDIR} QMAKE_EXTRA_TARGETS += makebuilddir PO_FILES = $$system(ls *.po) ## Install the translations install.target = install install_mo_commands = for(po_file, PO_FILES) { mo_name = $$replace(po_file,.po,) mo_targetpath = $(INSTALL_ROOT)$${INSTALL_PREFIX}/share/locale/$${mo_name}/LC_MESSAGES mo_target = $${mo_targetpath}/$${PROJECTNAME}.mo !isEmpty(install_mo_commands): install_mo_commands += && install_mo_commands += test -d $$mo_targetpath || mkdir -p $$mo_targetpath install_mo_commands += && cp $${mo_name}.mo $$mo_target } install.commands = $$install_mo_commands install.depends = mofiles QMAKE_EXTRA_TARGETS += install ## Build $locale.mo from the $locale.po files (called by the installed rule) mofiles.target = mofiles mofiles_po_commands = for(po_file, PO_FILES) { po_name = $$replace(po_file,.po,) install_po_commands += msgfmt $$po_file -o $${po_name}.mo; } mofiles.commands = $$install_po_commands QMAKE_EXTRA_TARGETS += mofiles ## Rule to clean the products of the build clean.target = clean clean.commands = rm -Rf $${BUILDDIR} *.mo QMAKE_EXTRA_TARGETS += clean ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/uk.po0000644000015201777760000000565612315270143025164 0ustar pbusernogroup00000000000000# Ukrainian translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-07-12 08:50+0000\n" "Last-Translator: Yuri Chornoivan \n" "Language-Team: Ukrainian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Ім'я користувача" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Пароль" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Додати обліковий запис…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Зберігання даних облікових записів тут надасть змогу іншими програмам " "користуватися цими обліковими записами без потреби у визначенні " "реєстраційних параметрів у кожній з цих програм." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Додавання облікового запису" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Немає облікових записів" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Додати обліковий запис:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Скасувати" #: ../src/module/Options.qml:36 msgid "ID" msgstr "Ід" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Вилучити обліковий запис…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Вилучення облікового запису" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Дані облікового запису %1 буде вилучено лише з вашого телефону. Пізніше ви " "зможете знову їх додати." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Вилучити" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Доступ до цього облікового запису:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Облікові записи" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/fr.po0000644000015201777760000000461412315270143025145 0ustar pbusernogroup00000000000000# French translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2013-10-01 12:46+0000\n" "Last-Translator: Nicolas Delvaux \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nom d'utilisateur" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Mot de passe" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Ajouter un compte…" #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Regrouper les détails de vos comptes ici permet aux applications de les " "utiliser sans que vous ayez besoin de vous connecter pour chacune d'entre " "elles." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Ajouter un compte" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "Pas de compte" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Ajouter un compte :" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Annuler" #: ../src/module/Options.qml:36 msgid "ID" msgstr "ID" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Supprimer un compte…" #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Supprimer le compte" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Le compte %1 sera uniquement supprimé de votre téléphone. Vous pourrez " "l'ajouter de nouveau plus tard." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Supprimer" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Accéder à ce compte :" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Comptes" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/po/ca.po0000644000015201777760000000465712315270143025130 0ustar pbusernogroup00000000000000# Catalan translation for ubuntu-system-settings-online-accounts # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the ubuntu-system-settings-online-accounts package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: ubuntu-system-settings-online-accounts\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2013-07-10 19:34+0200\n" "PO-Revision-Date: 2014-01-16 10:47+0000\n" "Last-Translator: David Planella \n" "Language-Team: Catalan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2014-03-25 07:27+0000\n" "X-Generator: Launchpad (build 16967)\n" #: ../plugins/example/Main.qml:33 msgid "User name" msgstr "Nom d'usuari" #: ../plugins/example/Main.qml:39 msgid "Password" msgstr "Contrasenya" #: ../src/AccountsPage.qml:53 msgid "Add account…" msgstr "Afegeix un compte..." #: ../src/AddAccountLabel.qml:27 msgid "" "Storing account details here lets apps use the accounts without you having " "to sign in for each app." msgstr "" "Si emmagatzemeu els detalls dels vostres comptes aquí, les aplicacions " "podran utilitzar-los sense que hàgiu d'introduir les dades d'accés per a " "cadascuna d'elles." #: ../src/NewAccountPage.qml:23 msgid "Add account" msgstr "Afegeix un compte" #: ../src/NoAccountsPage.qml:36 msgid "No accounts" msgstr "No hi ha cap compte" #: ../src/NoAccountsPage.qml:44 msgid "Add account:" msgstr "Afegeix un compte:" #: ../src/module/OAuth.qml:82 ../src/module/RemovalConfirmation.qml:41 msgid "Cancel" msgstr "Cancel·la" #: ../src/module/Options.qml:36 msgid "ID" msgstr "Identificador" #: ../src/module/Options.qml:54 msgid "Remove account…" msgstr "Suprimeix el compte..." #: ../src/module/RemovalConfirmation.qml:32 msgid "Remove account" msgstr "Suprimeix el compte" #: ../src/module/RemovalConfirmation.qml:33 #, qt-format msgid "" "The %1 account will be removed only from your phone. You can add it again " "later." msgstr "" "Se suprimirà el compte %1 només en aquest dispositiu. Podeu tornar-lo a " "afegir-lo més endavant." #: ../src/module/RemovalConfirmation.qml:36 msgid "Remove" msgstr "Suprimeix" #: ../src/module/ServiceSwitches.qml:33 msgid "Access to this account:" msgstr "Accés a aquest compte:" #: ../.build/settings.js:1 msgid "Accounts" msgstr "Comptes" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/coverage.pri0000644000015201777760000000372412315270143026070 0ustar pbusernogroup00000000000000# Coverage CONFIG(coverage) { OBJECTS_DIR = MOC_DIR = TOP_SRC_DIR = $$PWD LIBS += -lgcov QMAKE_CXXFLAGS += --coverage QMAKE_LDFLAGS += --coverage QMAKE_EXTRA_TARGETS += coverage cov QMAKE_EXTRA_TARGETS += clean-gcno clean-gcda coverage-html \ generate-coverage-html clean-coverage-html coverage-gcovr \ generate-gcovr generate-coverage-gcovr clean-coverage-gcovr clean-gcno.commands = \ "@echo Removing old coverage instrumentation"; \ "find -name '*.gcno' -print | xargs -r rm" clean-gcda.commands = \ "@echo Removing old coverage results"; \ "find -name '*.gcda' -print | xargs -r rm" coverage-html.depends = clean-gcda check generate-coverage-html generate-coverage-html.commands = \ "@echo Collecting coverage data"; \ "lcov --directory $${TOP_SRC_DIR} --capture --output-file coverage.info --no-checksum --compat-libtool"; \ "lcov --extract coverage.info \"*/src/*.cpp\" --extract coverage.info \"*/client/OnlineAccountsClient/*.cpp\" -o coverage.info"; \ "lcov --remove coverage.info \"moc_*.cpp\" --remove coverage.info \"tests/*.cpp\" -o coverage.info"; \ "LANG=C genhtml --prefix $${TOP_SRC_DIR} --output-directory coverage-html --title \"Code Coverage\" --legend --show-details coverage.info" clean-coverage-html.depends = clean-gcda clean-coverage-html.commands = \ "lcov --directory $${TOP_SRC_DIR} -z"; \ "rm -rf coverage.info coverage-html" coverage-gcovr.depends = clean-gcda check generate-coverage-gcovr generate-coverage-gcovr.commands = \ "@echo Generating coverage GCOVR report"; \ "gcovr -x -r $${TOP_SRC_DIR} -o $${TOP_SRC_DIR}/coverage.xml -e \".*/moc_.*\" -e \"tests/.*\" -e \".*\\.h\"" clean-coverage-gcovr.depends = clean-gcda clean-coverage-gcovr.commands = \ "rm -rf $${TOP_SRC_DIR}/coverage.xml" QMAKE_CLEAN += *.gcda *.gcno coverage.info coverage.xml } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/0000755000015201777760000000000012315270412024341 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/signon-ui/0000755000015201777760000000000012315270412026251 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/signon-ui/signon-ui.pro0000644000015201777760000000041612315270143030705 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) include($${TOP_SRC_DIR}/common-vars.pri) TEMPLATE = aux QML_SOURCES = \ Page.qml OTHER_FILES += $${QML_SOURCES} qml.files = $${QML_SOURCES} qml.path = $${INSTALL_PREFIX}/share/signon-ui/online-accounts-ui INSTALLS += qml ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/signon-ui/Page.qml0000644000015201777760000000153712315270143027647 0ustar pbusernogroup00000000000000import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem Page { id: root Loader { id: loader anchors { top: parent.top left: parent.left right: parent.right bottom: cancelButton.top bottomMargin: Math.max(osk.height - cancelButton.height, 0) } focus: true sourceComponent: browserComponent } ListItem.SingleControl { id: cancelButton anchors { left: parent.left right: parent.right bottom: parent.bottom } control: Button { text: i18n.dtr("ubuntu-system-settings-online-accounts", "Cancel") width: parent.width - units.gu(4) onClicked: request.cancel() } showDivider: false } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/com.canonical.OnlineAccountsUi.xml0000644000015201777760000000222612315270143033013 0ustar pbusernogroup00000000000000 ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/com.ubuntu.OnlineAccountsUi.service.in0000644000015201777760000000022012315270143033643 0ustar pbusernogroup00000000000000[D-BUS Service] Name=com.ubuntu.OnlineAccountsUi Exec=$${INSTALL_PREFIX}/bin/$${TARGET} --desktop_file_hint=$${desktop.path}/$${TARGET}.desktop ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/account-manager.h0000644000015201777760000000243312315270143027561 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_ACCOUNT_MANAGER_H #define OAU_ACCOUNT_MANAGER_H #include namespace OnlineAccountsUi { class AccountManager: public Accounts::Manager { Q_OBJECT public: static AccountManager *instance(); Accounts::AccountIdList accountListByProvider( const QString &providerId) const; protected: explicit AccountManager(QObject *parent = 0); ~AccountManager(); private: static AccountManager *m_instance; }; } // namespace #endif // OAU_ACCOUNT_MANAGER_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/panel-request.h0000644000015201777760000000252612315270143027305 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_PANEL_REQUEST_H #define OAU_PANEL_REQUEST_H #include "request.h" namespace OnlineAccountsUi { class PanelRequestPrivate; class PanelRequest: public Request { Q_OBJECT public: explicit PanelRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent = 0); ~PanelRequest(); void start() Q_DECL_OVERRIDE; private: PanelRequestPrivate *d_ptr; Q_DECLARE_PRIVATE(PanelRequest) }; } // namespace #endif // OAU_PANEL_REQUEST_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/provider-request.cpp0000644000015201777760000001202712315270143030370 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "access-model.h" #include "application-manager.h" #include "debug.h" #include "globals.h" #include "provider-request.h" #include #include #include #include #include using namespace OnlineAccountsUi; static bool firstTime = true; namespace OnlineAccountsUi { class ProviderRequestPrivate: public QObject { Q_OBJECT Q_DECLARE_PUBLIC(ProviderRequest) public: ProviderRequestPrivate(ProviderRequest *request); ~ProviderRequestPrivate(); void start(); private Q_SLOTS: void onWindowVisibleChanged(bool visible); void onDenied(); void onAllowed(int accountId); private: QVariantMap providerInfo(const QString &providerId) const; private: mutable ProviderRequest *q_ptr; QQuickView *m_view; QVariantMap m_applicationInfo; }; } // namespace ProviderRequestPrivate::ProviderRequestPrivate(ProviderRequest *request): QObject(request), q_ptr(request), m_view(0) { if (firstTime) { qmlRegisterType(); qmlRegisterType("Ubuntu.OnlineAccounts.Internal", 1, 0, "AccessModel"); firstTime = false; } } ProviderRequestPrivate::~ProviderRequestPrivate() { delete m_view; } void ProviderRequestPrivate::start() { Q_Q(ProviderRequest); QString applicationId = q->parameters().value(OAU_KEY_APPLICATION).toString(); ApplicationManager *appManager = ApplicationManager::instance(); m_applicationInfo = appManager->applicationInfo(applicationId, q->clientApparmorProfile()); if (Q_UNLIKELY(m_applicationInfo.isEmpty())) { q->fail(OAU_ERROR_INVALID_APPLICATION, QStringLiteral("Invalid client application")); return; } QString providerId = q->parameters().value(OAU_KEY_PROVIDER).toString(); QVariantMap providerInfo = appManager->providerInfo(providerId); m_view = new QQuickView; QObject::connect(m_view, SIGNAL(visibleChanged(bool)), this, SLOT(onWindowVisibleChanged(bool))); m_view->setResizeMode(QQuickView::SizeRootObjectToView); m_view->engine()->addImportPath(PLUGIN_PRIVATE_MODULE_DIR); QQmlContext *context = m_view->rootContext(); context->setContextProperty("systemQmlPluginPath", QUrl::fromLocalFile(OAU_PLUGIN_DIR)); context->setContextProperty("localQmlPluginPath", QUrl::fromLocalFile(QStandardPaths::writableLocation( QStandardPaths::GenericDataLocation) + "/accounts/qml-plugins/")); context->setContextProperty("provider", providerInfo); context->setContextProperty("application", m_applicationInfo); context->setContextProperty("mainWindow", m_view); m_view->setSource(QUrl(QStringLiteral("qrc:/qml/ProviderRequest.qml"))); QQuickItem *root = m_view->rootObject(); QObject::connect(root, SIGNAL(denied()), this, SLOT(onDenied())); QObject::connect(root, SIGNAL(allowed(int)), this, SLOT(onAllowed(int))); q->setWindow(m_view); } void ProviderRequestPrivate::onWindowVisibleChanged(bool visible) { Q_Q(ProviderRequest); if (!visible) { q->setResult(QVariantMap()); } } void ProviderRequestPrivate::onDenied() { DEBUG(); /* Just close the window; this will deliver the empty result to the * client */ m_view->close(); } void ProviderRequestPrivate::onAllowed(int accountId) { Q_Q(ProviderRequest); DEBUG() << "Access allowed for account:" << accountId; QVariantMap result; result.insert("accountId", quint32(accountId)); q->setResult(result); m_view->close(); } ProviderRequest::ProviderRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent): Request(connection, message, parameters, parent), d_ptr(new ProviderRequestPrivate(this)) { } ProviderRequest::~ProviderRequest() { } void ProviderRequest::start() { Q_D(ProviderRequest); Request::start(); d->start(); } #include "provider-request.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/panel-request.cpp0000644000015201777760000000560312315270143027637 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "debug.h" #include "globals.h" #include "panel-request.h" #include #include #include using namespace OnlineAccountsUi; namespace OnlineAccountsUi { class PanelRequestPrivate: public QObject { Q_OBJECT Q_DECLARE_PUBLIC(PanelRequest) public: PanelRequestPrivate(PanelRequest *request); ~PanelRequestPrivate(); void start(); private Q_SLOTS: void onWindowVisibleChanged(bool visible); private: mutable PanelRequest *q_ptr; QQuickView *m_view; }; } // namespace PanelRequestPrivate::PanelRequestPrivate(PanelRequest *request): QObject(request), q_ptr(request), m_view(0) { } PanelRequestPrivate::~PanelRequestPrivate() { DEBUG() << "view:" << m_view; delete m_view; } void PanelRequestPrivate::start() { Q_Q(PanelRequest); m_view = new QQuickView; QObject::connect(m_view, SIGNAL(visibleChanged(bool)), this, SLOT(onWindowVisibleChanged(bool))); m_view->setResizeMode(QQuickView::SizeRootObjectToView); m_view->engine()->addImportPath(PLUGIN_PRIVATE_MODULE_DIR); QQmlContext *context = m_view->rootContext(); context->setContextProperty("qmlPluginPath", QUrl::fromLocalFile(OAU_PLUGIN_DIR)); context->setContextProperty("pluginOptions", QVariantMap()); context->setContextProperty("mainWindow", m_view); m_view->setSource(QUrl(QStringLiteral("qrc:/qml/MainPage.qml"))); q->setWindow(m_view); } void PanelRequestPrivate::onWindowVisibleChanged(bool visible) { Q_Q(PanelRequest); DEBUG() << visible; if (!visible) { q->setResult(QVariantMap()); } } PanelRequest::PanelRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent): Request(connection, message, parameters, parent), d_ptr(new PanelRequestPrivate(this)) { } PanelRequest::~PanelRequest() { } void PanelRequest::start() { Q_D(PanelRequest); Request::start(); d->start(); } #include "panel-request.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/inactivity-timer.h0000644000015201777760000000254712315270143030024 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_INACTIVITY_TIMER_H #define OAU_INACTIVITY_TIMER_H #include #include #include namespace OnlineAccountsUi { class InactivityTimer: public QObject { Q_OBJECT public: InactivityTimer(int interval, QObject *parent = 0); ~InactivityTimer() {} void watchObject(QObject *object); Q_SIGNALS: void timeout(); private Q_SLOTS: void onIdleChanged(); void onTimeout(); private: bool allObjectsAreIdle() const; private: QList m_watchedObjects; QTimer m_timer; int m_interval; }; } // namespace #endif // OAU_INACTIVITY_TIMER_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/debug.cpp0000644000015201777760000000157312315270143026142 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "debug.h" int appLoggingLevel = 1; // criticals void setLoggingLevel(int level) { appLoggingLevel = level; } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/inactivity-timer.cpp0000644000015201777760000000334412315270143030353 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "inactivity-timer.h" #include "debug.h" using namespace OnlineAccountsUi; InactivityTimer::InactivityTimer(int interval, QObject *parent): QObject(parent), m_interval(interval) { m_timer.setSingleShot(true); QObject::connect(&m_timer, SIGNAL(timeout()), this, SLOT(onTimeout())); } void InactivityTimer::watchObject(QObject *object) { connect(object, SIGNAL(isIdleChanged()), SLOT(onIdleChanged())); m_watchedObjects.append(object); /* Force an initial check */ onIdleChanged(); } void InactivityTimer::onIdleChanged() { if (allObjectsAreIdle()) { m_timer.start(m_interval); } } void InactivityTimer::onTimeout() { DEBUG(); if (allObjectsAreIdle()) { Q_EMIT timeout(); } } bool InactivityTimer::allObjectsAreIdle() const { foreach (const QObject *object, m_watchedObjects) { if (!object->property("isIdle").toBool()) { return false; } } return true; } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/request.cpp0000644000015201777760000001335112315270143026541 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "debug.h" #include "globals.h" #include "panel-request.h" #include "request.h" #include using namespace OnlineAccountsUi; namespace OnlineAccountsUi { class RequestPrivate: public QObject { Q_OBJECT Q_DECLARE_PUBLIC(Request) public: RequestPrivate(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, Request *request); ~RequestPrivate(); WId windowId() const { return m_parameters[OAU_KEY_WINDOW_ID].toUInt(); } private: void setWindow(QWindow *window); QString findClientApparmorProfile(); private: mutable Request *q_ptr; QDBusConnection m_connection; QDBusMessage m_message; QVariantMap m_parameters; QString m_clientApparmorProfile; bool m_inProgress; QPointer m_window; }; } // namespace RequestPrivate::RequestPrivate(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, Request *request): QObject(request), q_ptr(request), m_connection(connection), m_message(message), m_parameters(parameters), m_inProgress(false), m_window(0) { m_clientApparmorProfile = findClientApparmorProfile(); } RequestPrivate::~RequestPrivate() { } void RequestPrivate::setWindow(QWindow *window) { if (m_window != 0) { qWarning() << "Widget already set"; return; } m_window = window; if (windowId() != 0) { DEBUG() << "Requesting window reparenting"; QWindow *parent = QWindow::fromWinId(windowId()); window->setTransientParent(parent); } window->show(); } QString RequestPrivate::findClientApparmorProfile() { QString uniqueConnectionId = m_message.service(); QString appId; QDBusMessage msg = QDBusMessage::createMethodCall("org.freedesktop.DBus", "/org/freedesktop/DBus", "org.freedesktop.DBus", "GetConnectionAppArmorSecurityContext"); QVariantList args; args << uniqueConnectionId; msg.setArguments(args); QDBusMessage reply = QDBusConnection::sessionBus().call(msg, QDBus::Block); if (reply.type() == QDBusMessage::ReplyMessage) { appId = reply.arguments().value(0, QString()).toString(); DEBUG() << "App ID:" << appId; } else { qWarning() << "Error getting app ID:" << reply.errorName() << reply.errorMessage(); } return appId; } /* Some unit tests might need to provide a different implementation for the * Request::newRequest() factory method; for this reason, we allow the method * to be excluded from compilation. */ #ifndef NO_REQUEST_FACTORY Request *Request::newRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent) { /* If the supported requests types vary considerably, we can create * different subclasses for handling them, and in this method we examine * the @parameters argument to figure out which subclass is the most apt to * handle the request. */ if (parameters.contains(OAU_KEY_PROVIDER)) { // TODO return 0; } else { return new PanelRequest(connection, message, parameters, parent); } } #endif Request::Request(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent): QObject(parent), d_ptr(new RequestPrivate(connection, message, parameters, this)) { } Request::~Request() { } void Request::setWindow(QWindow *window) { Q_D(Request); d->setWindow(window); } WId Request::windowId() const { Q_D(const Request); return d->windowId(); } bool Request::isInProgress() const { Q_D(const Request); return d->m_inProgress; } const QVariantMap &Request::parameters() const { Q_D(const Request); return d->m_parameters; } QString Request::clientApparmorProfile() const { Q_D(const Request); return d->m_clientApparmorProfile; } void Request::start() { Q_D(Request); if (d->m_inProgress) { qWarning() << "Request already started!"; return; } d->m_inProgress = true; } void Request::cancel() { setCanceled(); } void Request::fail(const QString &name, const QString &message) { Q_D(Request); QDBusMessage reply = d->m_message.createErrorReply(name, message); d->m_connection.send(reply); Q_EMIT completed(); } void Request::setCanceled() { fail(OAU_ERROR_USER_CANCELED, QStringLiteral("Canceled")); } void Request::setResult(const QVariantMap &result) { Q_D(Request); QDBusMessage reply = d->m_message.createReply(result); d->m_connection.send(reply); Q_EMIT completed(); } #include "request.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/service.cpp0000644000015201777760000000771512315270143026520 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "debug.h" #include "globals.h" #include "onlineaccountsui_adaptor.h" #include "request.h" #include "service.h" #include using namespace OnlineAccountsUi; namespace OnlineAccountsUi { typedef QQueue RequestQueue; class ServicePrivate: public QObject { Q_OBJECT Q_DECLARE_PUBLIC(Service) public: ServicePrivate(Service *service); ~ServicePrivate(); RequestQueue &queueForWindowId(WId windowId); void enqueue(Request *request); void runQueue(RequestQueue &queue); private Q_SLOTS: void onRequestCompleted(); private: mutable Service *q_ptr; /* each window Id has a different queue */ QMap m_requests; }; } // namespace ServicePrivate::ServicePrivate(Service *service): QObject(service), q_ptr(service) { } ServicePrivate::~ServicePrivate() { } RequestQueue &ServicePrivate::queueForWindowId(WId windowId) { if (!m_requests.contains(windowId)) { RequestQueue queue; m_requests.insert(windowId, queue); } return m_requests[windowId]; } void ServicePrivate::enqueue(Request *request) { Q_Q(Service); bool wasIdle = q->isIdle(); WId windowId = request->windowId(); RequestQueue &queue = queueForWindowId(windowId); queue.enqueue(request); if (wasIdle) { Q_EMIT q->isIdleChanged(); } runQueue(queue); } void ServicePrivate::runQueue(RequestQueue &queue) { Request *request = queue.head(); DEBUG() << "Head:" << request; if (request->isInProgress()) { DEBUG() << "Already in progress"; return; // Nothing to do } QObject::connect(request, SIGNAL(completed()), this, SLOT(onRequestCompleted())); request->start(); } void ServicePrivate::onRequestCompleted() { Q_Q(Service); Request *request = qobject_cast(sender()); WId windowId = request->windowId(); RequestQueue &queue = queueForWindowId(windowId); if (request != queue.head()) { qCritical("Completed request is not first in queue!"); return; } queue.dequeue(); request->deleteLater(); if (queue.isEmpty()) { m_requests.remove(windowId); } else { /* start the next request */ runQueue(queue); } if (q->isIdle()) { Q_EMIT q->isIdleChanged(); } } Service::Service(QObject *parent): QObject(parent), d_ptr(new ServicePrivate(this)) { new OnlineAccountsUiAdaptor(this); } Service::~Service() { } bool Service::isIdle() const { Q_D(const Service); return d->m_requests.isEmpty(); } QVariantMap Service::requestAccess(const QVariantMap &options) { Q_D(Service); DEBUG() << "Got request:" << options; /* The following line tells QtDBus not to generate a reply now */ setDelayedReply(true); Request *request = Request::newRequest(connection(), message(), options, this); if (request) { d->enqueue(request); } else { sendErrorReply(OAU_ERROR_INVALID_PARAMETERS, QStringLiteral("Invalid request")); } return QVariantMap(); } #include "service.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/account-manager.cpp0000644000015201777760000000352312315270143030115 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "account-manager.h" #include "debug.h" using namespace OnlineAccountsUi; using namespace Accounts; AccountManager *AccountManager::m_instance = 0; AccountManager *AccountManager::instance() { if (!m_instance) { m_instance = new AccountManager; /* to ensure that all the installed services are parsed into * libaccounts' DB, we enumerate them here. * TODO: a click package hook would be a more proper fix. */ m_instance->serviceList(); } return m_instance; } AccountManager::AccountManager(QObject *parent): Accounts::Manager(parent) { } AccountManager::~AccountManager() { } AccountIdList AccountManager::accountListByProvider(const QString &providerId) const { AccountIdList allAccounts = accountList(); AccountIdList providerAccounts; Q_FOREACH(AccountId accountId, allAccounts) { Account *account = this->account(accountId); if (!account) continue; if (account->providerName() != providerId) continue; providerAccounts.append(accountId); } return providerAccounts; } ././@LongLink0000000000000000000000000000015000000000000011211 Lustar 00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/com.canonical.OnlineAccountsUi.service.inubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/com.canonical.OnlineAccountsUi.service0000644000015201777760000000022312315270143033646 0ustar pbusernogroup00000000000000[D-BUS Service] Name=com.canonical.OnlineAccountsUi Exec=$${INSTALL_PREFIX}/bin/$${TARGET} --desktop_file_hint=$${desktop.path}/$${TARGET}.desktop ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/debug.h0000644000015201777760000000237012315270143025603 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_DEBUG_H #define OAU_DEBUG_H #include /* 0 - fatal, 1 - critical(default), 2 - info/debug */ extern int appLoggingLevel; static inline bool debugEnabled() { return appLoggingLevel >= 2; } static inline int loggingLevel() { return appLoggingLevel; } void setLoggingLevel(int level); #ifdef DEBUG_ENABLED #define DEBUG() \ if (debugEnabled()) qDebug() << __FILE__ << __LINE__ << __func__ #else #define DEBUG() while (0) qDebug() #endif #endif // OAU_DEBUG_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/access-model.h0000644000015201777760000000467012315270143027061 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_ACCESS_MODEL_H #define OAU_ACCESS_MODEL_H #include namespace OnlineAccountsUi { class AccessModelPrivate; class AccessModel: public QIdentityProxyModel { Q_OBJECT Q_PROPERTY(QAbstractItemModel *accountModel READ accountModel \ WRITE setAccountModel NOTIFY accountModelChanged) Q_PROPERTY(int count READ rowCount NOTIFY countChanged) Q_PROPERTY(QString lastItemText READ lastItemText WRITE setLastItemText \ NOTIFY lastItemTextChanged) Q_PROPERTY(QString applicationId READ applicationId \ WRITE setApplicationId NOTIFY applicationIdChanged) public: explicit AccessModel(QObject *parent = 0); ~AccessModel(); void setAccountModel(QAbstractItemModel *accountModel); QAbstractItemModel *accountModel() const; int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; void setLastItemText(const QString &text); QString lastItemText() const; void setApplicationId(const QString &applicationId); QString applicationId() const; Q_INVOKABLE QVariant get(int row, const QString &roleName) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; QHash roleNames() const Q_DECL_OVERRIDE; QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; Q_SIGNALS: void accountModelChanged(); void countChanged(); void lastItemTextChanged(); void applicationIdChanged(); private: AccessModelPrivate *d_ptr; Q_DECLARE_PRIVATE(AccessModel) }; } // namespace #endif // OAU_ACCESS_MODEL_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/main.cpp0000644000015201777760000000505312315270143025775 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "debug.h" #include "globals.h" #include "i18n.h" #include "inactivity-timer.h" #include "service.h" #include #include #include using namespace OnlineAccountsUi; int main(int argc, char **argv) { QGuiApplication app(argc, argv); app.setQuitOnLastWindowClosed(false); /* read environment variables */ QProcessEnvironment environment = QProcessEnvironment::systemEnvironment(); if (environment.contains(QLatin1String("OAU_LOGGING_LEVEL"))) { bool isOk; int value = environment.value( QLatin1String("OAU_LOGGING_LEVEL")).toInt(&isOk); if (isOk) setLoggingLevel(value); } /* default daemonTimeout to 5 seconds */ int daemonTimeout = 5; /* override daemonTimeout if OAU_DAEMON_TIMEOUT is set */ if (environment.contains(QLatin1String("OAU_DAEMON_TIMEOUT"))) { bool isOk; int value = environment.value( QLatin1String("OAU_DAEMON_TIMEOUT")).toInt(&isOk); if (isOk) daemonTimeout = value; } initTr(I18N_DOMAIN, NULL); Service *service = new Service(); QDBusConnection connection = QDBusConnection::sessionBus(); connection.registerService(OAU_SERVICE_NAME); connection.registerObject(OAU_OBJECT_PATH, service); InactivityTimer *inactivityTimer = 0; if (daemonTimeout > 0) { inactivityTimer = new InactivityTimer(daemonTimeout * 1000); inactivityTimer->watchObject(service); QObject::connect(inactivityTimer, SIGNAL(timeout()), &app, SLOT(quit())); } int ret = app.exec(); connection.unregisterService(OAU_SERVICE_NAME); connection.unregisterObject(OAU_OBJECT_PATH); delete service; delete inactivityTimer; return ret; } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/com.ubuntu.OnlineAccountsUi.xml0000644000015201777760000000256112315270143032410 0ustar pbusernogroup00000000000000 ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/ui.qrc0000644000015201777760000000077412315270143025476 0ustar pbusernogroup00000000000000 qml/AccountCreationPage.qml qml/AccountEditPage.qml qml/AccountItem.qml qml/AccountsPage.qml qml/AddAccountLabel.qml qml/MainPage.qml qml/NewAccountPage.qml qml/NoAccountsPage.qml qml/NormalStartupPage.qml qml/ProviderPluginList.qml qml/ProvidersList.qml ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/i18n.cpp0000644000015201777760000000212212315270143025622 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #define NO_TR_OVERRIDE #include "i18n.h" #include namespace OnlineAccountsUi { void initTr(const char *domain, const char *localeDir) { bindtextdomain(domain, localeDir); textdomain(domain); } QString _(const char *text, const char *domain) { return QString::fromUtf8(dgettext(domain, text)); } }; // namespace ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/service.h0000644000015201777760000000254512315270143026161 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_SERVICE_H #define OAU_SERVICE_H #include #include #include namespace OnlineAccountsUi { class ServicePrivate; class Service: public QObject, protected QDBusContext { Q_OBJECT Q_PROPERTY(bool isIdle READ isIdle NOTIFY isIdleChanged) public: explicit Service(QObject *parent = 0); ~Service(); bool isIdle() const; public Q_SLOTS: QVariantMap requestAccess(const QVariantMap &options); Q_SIGNALS: void isIdleChanged(); private: ServicePrivate *d_ptr; Q_DECLARE_PRIVATE(Service) }; } // namespace #endif // OAU_SERVICE_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/application-manager.cpp0000644000015201777760000001205712315270143030766 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "account-manager.h" #include "application-manager.h" #include "debug.h" #include #include #include using namespace OnlineAccountsUi; ApplicationManager *ApplicationManager::m_instance = 0; namespace OnlineAccountsUi { class ApplicationManagerPrivate { public: ApplicationManagerPrivate(); bool applicationMatchesProfile(const Accounts::Application &application, const QString &profile) const; }; } // namespace ApplicationManagerPrivate::ApplicationManagerPrivate() { } bool ApplicationManagerPrivate::applicationMatchesProfile(const Accounts::Application &application, const QString &profile) const { /* We don't restrict unconfined apps. */ if (profile == QStringLiteral("unconfined")) return true; /* It's a confined app. We must make sure that the applicationId it * specified matches the apparmor profile. * * For click packages, this is relatively easy: we load the .desktop * file and checks whether the profile declared in the * X-Ubuntu-Application-ID field is the same we are seeing. * If we cannot determine that, then we assume that the application is not * a click package, and we don't restrict it. */ QString desktopFilePath = application.desktopFilePath(); if (!QFile::exists(desktopFilePath)) { DEBUG() << "Desktop file not found:" << desktopFilePath; /* Every app, be it click or a package from the archive, should have a * desktop file. If we don't find it, something is likely to be wrong * and it's safer not to continue. */ return false; } QSettings desktopFile(desktopFilePath, QSettings::IniFormat); QString appId = desktopFile.value(QStringLiteral("Desktop Entry/X-Ubuntu-Application-ID")). toString(); if (appId.isEmpty()) { // non click package? return true; } return appId == profile; } ApplicationManager *ApplicationManager::instance() { if (!m_instance) { m_instance = new ApplicationManager; } return m_instance; } ApplicationManager::ApplicationManager(QObject *parent): QObject(parent), d_ptr(new ApplicationManagerPrivate) { } ApplicationManager::~ApplicationManager() { delete d_ptr; } QVariantMap ApplicationManager::applicationInfo(const QString &claimedAppId, const QString &profile) { Q_D(const ApplicationManager); if (Q_UNLIKELY(profile.isEmpty())) return QVariantMap(); QString applicationId = claimedAppId; if (profile.startsWith(applicationId)) { /* Click packages might declare just the package name as application * ID, but in order to find the correct application file we need the * complete ID (with application title and version. */ applicationId = profile; } Accounts::Application application = AccountManager::instance()->application(applicationId); /* Make sure that the app is who it claims to be */ if (!d->applicationMatchesProfile(application, profile)) { DEBUG() << "Given applicationId doesn't match profile"; return QVariantMap(); } QVariantMap app; app.insert(QStringLiteral("id"), applicationId); app.insert(QStringLiteral("displayName"), application.displayName()); app.insert(QStringLiteral("icon"), application.iconName()); app.insert(QStringLiteral("profile"), profile); /* List all the services supported by this application */ QVariantList serviceIds; Accounts::ServiceList allServices = AccountManager::instance()->serviceList(); Q_FOREACH(const Accounts::Service &service, allServices) { if (!application.serviceUsage(service).isEmpty()) { serviceIds.append(service.name()); } } app.insert(QStringLiteral("services"), serviceIds); return app; } QVariantMap ApplicationManager::providerInfo(const QString &providerId) const { Accounts::Provider provider = AccountManager::instance()->provider(providerId); QVariantMap info; info.insert(QStringLiteral("id"), providerId); info.insert(QStringLiteral("displayName"), provider.displayName()); info.insert(QStringLiteral("icon"), provider.iconName()); return info; } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/online-accounts-ui.pro0000644000015201777760000000315312315270143030602 0ustar pbusernogroup00000000000000include(../common-project-config.pri) include($${TOP_SRC_DIR}/common-vars.pri) TEMPLATE = app TARGET = online-accounts-ui CONFIG += \ link_pkgconfig \ qt QT += \ dbus \ gui \ qml \ quick I18N_DOMAIN="ubuntu-system-settings-online-accounts" DEFINES += \ I18N_DOMAIN=\\\"$${I18N_DOMAIN}\\\" DBUS_ADAPTORS += \ com.canonical.OnlineAccountsUi.xml DEFINES += \ DEBUG_ENABLED \ OAU_PLUGIN_DIR=\\\"$${ONLINE_ACCOUNTS_PLUGIN_DIR}/\\\" \ PLUGIN_PRIVATE_MODULE_DIR=\\\"$${PLUGIN_PRIVATE_MODULE_DIR}\\\" SOURCES += \ debug.cpp \ i18n.cpp \ inactivity-timer.cpp \ main.cpp \ panel-request.cpp \ request.cpp \ service.cpp HEADERS += \ debug.h \ i18n.h \ inactivity-timer.h \ panel-request.h \ request.h \ service.h QML_SOURCES = \ qml/AccountCreationPage.qml \ qml/AccountEditPage.qml \ qml/AccountItem.qml \ qml/AccountsPage.qml \ qml/AddAccountLabel.qml \ qml/MainPage.qml \ qml/NewAccountPage.qml \ qml/NoAccountsPage.qml \ qml/NormalStartupPage.qml \ qml/ProviderPluginList.qml \ qml/ProvidersList.qml RESOURCES += \ ui.qrc OTHER_FILES += \ $${QML_SOURCES} \ $${RESOURCES} QMAKE_SUBSTITUTES += \ com.canonical.OnlineAccountsUi.service.in \ online-accounts-ui.desktop.in service.path = $${INSTALL_PREFIX}/share/dbus-1/services service.files = \ com.canonical.OnlineAccountsUi.service INSTALLS += service desktop.path = $${INSTALL_PREFIX}/share/applications desktop.files += online-accounts-ui.desktop INSTALLS += desktop include($${TOP_SRC_DIR}/common-installs-config.pri) ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/i18n.h0000644000015201777760000000175212315270143025277 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_I18N_H #define OAU_I18N_H #include namespace OnlineAccountsUi { void initTr(const char *domain, const char *localeDir); QString _(const char *text, const char *domain = 0); } // namespace #endif // OAU_I18N_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/access-model.cpp0000644000015201777760000001513612315270143027413 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "access-model.h" #include "account-manager.h" #include "debug.h" #include #include #include #include using namespace OnlineAccountsUi; namespace OnlineAccountsUi { class AccessModelPrivate: public QSortFilterProxyModel { Q_OBJECT Q_DECLARE_PUBLIC(AccessModel) public: inline AccessModelPrivate(AccessModel *accessModel); inline ~AccessModelPrivate(); void ensureSupportedServices() const; protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const Q_DECL_OVERRIDE; private: mutable AccessModel *q_ptr; mutable Accounts::ServiceList m_supportedServices; QString m_lastItemText; QString m_applicationId; }; } // namespace AccessModelPrivate::AccessModelPrivate(AccessModel *accessModel): QSortFilterProxyModel(accessModel), q_ptr(accessModel) { } AccessModelPrivate::~AccessModelPrivate() { } void AccessModelPrivate::ensureSupportedServices() const { if (!m_supportedServices.isEmpty()) return; // Nothing to do /* List all services supported by the accounts's provider. We know that the * account model is an instance of the accounts-qml-module's * AccountServiceModel, and that its "provider" property must be set. */ QAbstractItemModel *accountModel = sourceModel(); if (!accountModel) return; QString providerId = accountModel->property("provider").toString(); if (providerId.isEmpty()) return; AccountManager *manager = AccountManager::instance(); Accounts::Application application = manager->application(m_applicationId); Accounts::ServiceList allServices = manager->serviceList(); Q_FOREACH(const Accounts::Service &service, allServices) { if (service.provider() == providerId && !application.serviceUsage(service).isEmpty()) { m_supportedServices.append(service); } } } bool AccessModelPrivate::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const { Q_UNUSED(sourceParent); if (m_applicationId.isEmpty()) return true; /* We must avoid showing those accounts which have already been enabled for * this application. */ ensureSupportedServices(); QVariant result; bool ok = QMetaObject::invokeMethod(sourceModel(), "get", Qt::DirectConnection, Q_RETURN_ARG(QVariant, result), Q_ARG(int, sourceRow), Q_ARG(QString, "accountHandle")); if (Q_UNLIKELY(!ok)) return false; QObject *accountHandle = result.value(); Accounts::Account *account = qobject_cast(accountHandle); if (Q_UNLIKELY(!account)) return false; bool allServicesEnabled = true; Q_FOREACH(const Accounts::Service &service, m_supportedServices) { account->selectService(service); if (!account->isEnabled()) { allServicesEnabled = false; break; } } DEBUG() << account->id() << "allServicesEnabled" << allServicesEnabled; return !allServicesEnabled; } AccessModel::AccessModel(QObject *parent): QIdentityProxyModel(parent), d_ptr(new AccessModelPrivate(this)) { Q_D(AccessModel); QObject::connect(this, SIGNAL(rowsInserted(const QModelIndex&,int,int)), this, SIGNAL(countChanged())); QObject::connect(this, SIGNAL(rowsRemoved(const QModelIndex&,int,int)), this, SIGNAL(countChanged())); d->setDynamicSortFilter(true); setSourceModel(d); } AccessModel::~AccessModel() { } void AccessModel::setAccountModel(QAbstractItemModel *accountModel) { Q_D(AccessModel); d->setSourceModel(accountModel); Q_EMIT accountModelChanged(); } QAbstractItemModel *AccessModel::accountModel() const { Q_D(const AccessModel); return d->sourceModel(); } int AccessModel::rowCount(const QModelIndex &parent) const { return QIdentityProxyModel::rowCount(parent) + 1; } void AccessModel::setLastItemText(const QString &text) { Q_D(AccessModel); if (text == d->m_lastItemText) return; d->m_lastItemText = text; Q_EMIT lastItemTextChanged(); QModelIndex lastItemIndex = index(d->rowCount(), 0); Q_EMIT dataChanged(lastItemIndex, lastItemIndex); } QString AccessModel::lastItemText() const { Q_D(const AccessModel); return d->m_lastItemText; } void AccessModel::setApplicationId(const QString &applicationId) { Q_D(AccessModel); if (applicationId == d->m_applicationId) return; d->m_applicationId = applicationId; Q_EMIT applicationIdChanged(); d->m_supportedServices.clear(); /* Trigger a refresh of the filtered model */ d->invalidateFilter(); } QString AccessModel::applicationId() const { Q_D(const AccessModel); return d->m_applicationId; } QVariant AccessModel::get(int row, const QString &roleName) const { int role = roleNames().key(roleName.toLatin1(), -1); return data(index(row, 0), role); } QVariant AccessModel::data(const QModelIndex &index, int role) const { Q_D(const AccessModel); int row = index.row(); if (row < d->rowCount()) { return QIdentityProxyModel::data(index, role); } else { if (Q_UNLIKELY(row > d->rowCount())) return QVariant(); return d->m_lastItemText; } } QHash AccessModel::roleNames() const { Q_D(const AccessModel); return d->roleNames(); } QModelIndex AccessModel::index(int row, int column, const QModelIndex &parent) const { Q_D(const AccessModel); if (row < d->rowCount()) { return QIdentityProxyModel::index(row, column, parent); } else { return createIndex(row, column); } } #include "access-model.moc" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/online-accounts-ui.desktop.in0000644000015201777760000000034312315270143032056 0ustar pbusernogroup00000000000000[Desktop Entry] Encoding=UTF-8 Version=1.0 Name=Online Accounts Comment=Create and edit Online Accounts Exec=$${target.path}/$$TARGET Icon= Type=Application Terminal=false NoDisplay=true X-Ubuntu-Gettext-Domain=$${I18N_DOMAIN} ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/src.pro0000644000015201777760000000012712315270143025653 0ustar pbusernogroup00000000000000TEMPLATE = subdirs SUBDIRS = \ module \ online-accounts-ui.pro \ signon-ui ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/0000755000015201777760000000000012315270412025132 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/ProvidersList.qml0000644000015201777760000000326612315270143030466 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem import Ubuntu.OnlineAccounts 0.1 Column { id: root signal providerClicked(string providerId) anchors.left: parent.left anchors.right: parent.right ProviderModel { id: providerModel } Repeater { model: providerModel delegate: ListItem.Standard { text: displayName enabled: !isSingleAccount || hasNoAccounts(providerId) iconName: model.iconName progression: true onClicked: root.providerClicked(providerId) } } Component { id: accountModel AccountServiceModel { includeDisabled: true } } function hasNoAccounts(providerId) { var model = accountModel.createObject(null, { "provider": providerId }) var hasAccounts = (model.count > 0) model.destroy() return !hasAccounts } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/AccountItem.qml0000644000015201777760000000333312315270143030063 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem import Ubuntu.OnlineAccounts 0.1 ListItem.Subtitled { property variant accountHandle property variant globalServiceHandle property variant __editPage: null property bool running: false iconName: globalService.provider.iconName progression: true opacity: globalService.enabled ? 1 : 0.5 resources: [ AccountService { id: globalService objectHandle: globalServiceHandle }, Component { id: accountEditPage AccountEditPage {} } ] onClicked: { __editPage = accountEditPage.createObject(null, { "accountHandle": accountHandle }) __editPage.finished.connect(__onEditFinished) pageStack.push(__editPage) running = true; } function __onEditFinished() { __editPage.destroy(1000) __editPage = null pageStack.pop() running = false } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/NoAccountsPage.qml0000644000015201777760000000275112315270143030524 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem Flickable { id: root property variant accountsModel contentHeight: contentItem.childrenRect.height boundsBehavior: Flickable.StopAtBounds Column { anchors.left: parent.left anchors.right: parent.right ListItem.Base { Label { text: i18n.tr("No accounts") anchors.centerIn: parent } } AddAccountLabel {} ListItem.Standard { text: i18n.tr("Add account:") } ProviderPluginList { onCreationFinished: { // pop the creation page; remain in this page pageStack.pop() } } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/AddAccountLabel.qml0000644000015201777760000000204112315270156030614 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem ListItem.Caption { anchors.left: parent.left anchors.right: parent.right anchors.margins: units.gu(2) text: i18n.tr("Storing account details here lets apps use the accounts without you having to sign in for each app.") } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/MainPage.qml0000644000015201777760000000335712315270156027343 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.OnlineAccounts 0.1 MainView { id: root width: units.gu(48) height: units.gu(60) Component.onCompleted: { i18n.domain = "ubuntu-system-settings-online-accounts" pageStack.push(mainPage) /* hack to force the visibility of the back button and make it close * the window */ mainPage.tools.back.visible = true mainPage.tools.back.triggered.connect(mainWindow.close) } PageStack { id: pageStack Page { id: mainPage title: i18n.tr("Accounts") Loader { id: loader anchors.fill: parent sourceComponent: pluginOptions.provider ? accountCreationPage : normalStartupPage } } } Component { id: normalStartupPage NormalStartupPage {} } Component { id: accountCreationPage AccountCreationPage { providerId: pluginOptions.provider } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/AccountEditPage.qml0000644000015201777760000000253212315270143030647 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.OnlineAccounts 0.1 Page { id: root property variant accountHandle signal finished title: account.provider.displayName Account { id: account objectHandle: accountHandle } Loader { id: loader property var account: account anchors.fill: parent source: qmlPluginPath + account.provider.id + "/Main.qml" Connections { target: loader.item onFinished: { console.log("====== PLUGIN FINISHED ======") root.finished() } } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/NormalStartupPage.qml0000644000015201777760000000243712315270143031264 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.OnlineAccounts 0.1 Item { id: root property Item flickable: accountsPage.visible ? accountsPage : noAccountsPage AccountServiceModel { id: accountsModel service: "global" includeDisabled: true } AccountsPage { id: accountsPage anchors.fill: parent accountsModel: accountsModel visible: accountsModel.count > 0 } NoAccountsPage { id: noAccountsPage anchors.fill: parent accountsModel: accountsModel visible: !accountsPage.visible } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/AuthorizationPage.qml0000644000015201777760000000453012315270143031305 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem Flickable { id: root property variant model property variant application property variant provider signal allowed(int accountId) signal denied signal createAccount Column { anchors.left: parent.left anchors.right: parent.right Label { anchors.left: parent.left anchors.right: parent.right text: i18n.tr("%1 wants to access your %2 account"). arg(application.displayName).arg(provider.displayName); wrapMode: Text.WordWrap } ListItem.ItemSelector { id: accountSelector anchors.left: parent.left anchors.right: parent.right text: "Account" model: root.model delegate: OptionSelectorDelegate { property string modelData: model.displayName } onDelegateClicked: { /* The last item in the model is the "Add another..." label */ if (index == model.count - 1) root.createAccount(); } } Button { anchors.horizontalCenter: parent.horizontalCenter width: parent.width - units.gu(4) text: i18n.tr("Allow") onClicked: root.allowed(root.model.get(accountSelector.selectedIndex, "accountId")) } Button { anchors.horizontalCenter: parent.horizontalCenter width: parent.width - units.gu(4) text: i18n.tr("Don't allow") onClicked: root.denied() } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/ProviderRequest.qml0000644000015201777760000001471712315270156031027 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.OnlineAccounts 0.1 import Ubuntu.OnlineAccounts.Internal 1.0 MainView { id: root property variant applicationInfo: application property variant providerInfo: provider property int __createdAccountId: 0 signal denied signal allowed(int accountId) width: units.gu(48) height: units.gu(60) Component.onCompleted: { i18n.domain = "ubuntu-system-settings-online-accounts" loader.active = true pageStack.push(mainPage) } on__CreatedAccountIdChanged: grantAccessIfReady() PageStack { id: pageStack Page { id: mainPage title: i18n.tr("Accounts") Loader { id: loader anchors.fill: parent active: false sourceComponent: accessModel.count <= 1 ? accountCreationPage : authorizationPage onLoaded: { // use this trick to break the sourceComponent binding var tmp = sourceComponent sourceComponent = tmp } } } } AccountServiceModel { id: accountsModel service: "global" provider: providerInfo.id includeDisabled: true onCountChanged: root.grantAccessIfReady() function indexOfAccount(accountId) { for (var i = 0; i < accountsModel.count; i++) { if (accountsModel.get(i, "accountId") == accountId) return i } return -1 } } AccessModel { id: accessModel accountModel: accountsModel applicationId: applicationInfo.id lastItemText: i18n.tr("Add another") } Component { id: accountCreationPage AccountCreationPage { providerId: providerInfo.id onFinished: { if (accountId == 0) root.denied() /* if an account was created, just remember its ID. when the * accountsModel will notice it we'll proceed with the access * grant */ else root.__createdAccountId = accountId } } } Component { id: authorizationPage AuthorizationPage { model: accessModel application: applicationInfo provider: providerInfo onDenied: root.denied() onAllowed: root.grantAccess(accountId) onCreateAccount: pageStack.push(accountCreationPage) } } Component { id: createAccountPageComponent Page { title: i18n.tr("Accounts") Loader { anchors.fill: parent sourceComponent: accountCreationPage } } } Component { id: accountServiceComponent AccountService { autoSync: false } } Account { id: account onSynced: accountEnablingDone() } AccountService { id: globalAccountService objectHandle: account.accountServiceHandle credentials: accountCredentials autoSync: false } AccountServiceModel { id: accountServiceModel includeDisabled: true account: account.objectHandle } Credentials { id: accountCredentials credentialsId: globalAccountService.objectHandle != null ? globalAccountService.authData.credentialsId : 0 onSynced: { console.log("Credentials ready (store secret = " + storeSecret + ")") if (acl.indexOf(applicationInfo.profile) >= 0) { console.log("Application is in ACL: " + acl) root.aclDone() return } acl.push(applicationInfo.profile) sync() } } function grantAccessIfReady() { if (root.__createdAccountId != 0 && accountsModel.indexOfAccount(root.__createdAccountId) >= 0) { root.grantAccess(root.__createdAccountId) root.__createdAccountId = 0 } } function grantAccess(accountId) { console.log("granting access to account " + accountId) // find the index in the model for this account var i = accountsModel.indexOfAccount(accountId) if (i < 0) { // very unlikely; maybe the account has been deleted in the meantime console.log("Account not found:" + accountId) root.denied() return } // setting this will trigger the update of the ACL account.objectHandle = accountsModel.get(i, "accountHandle") } function aclDone() { console.log("acl done") /* now we can enable the application services in the account. */ for (var i = 0; i < accountServiceModel.count; i++) { var accountService = accountServiceComponent.createObject(null, { "objectHandle": accountServiceModel.get(i, "accountServiceHandle") }) console.log("Account service account id: " + accountService.accountId) var serviceId = accountService.service.id if (applicationInfo.services.indexOf(serviceId) >= 0 && !accountService.serviceEnabled) { console.log("Enabling service " + serviceId) accountService.updateServiceEnabled(true) } /* The accountService is just a convenience object: all the changes * are stored in the account object. So we can destroy this one. */ accountService.destroy() } // Store the changes account.sync() } function accountEnablingDone() { console.log("account enabling done") allowed(account.accountId) } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/constants.js.in0000644000015201777760000000007012315270143030107 0ustar pbusernogroup00000000000000var qmlPluginPath = \"$${ONLINE_ACCOUNTS_PLUGIN_DIR}/\" ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/NewAccountPage.qml0000644000015201777760000000225612315270143030516 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 Page { title: i18n.tr("Add account") Flickable { anchors.fill: parent contentHeight: contentItem.childrenRect.height boundsBehavior: Flickable.StopAtBounds ProviderPluginList { onCreationFinished: { // pop the creation page and this page (go back to parent page) pageStack.pop() pageStack.pop() } } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/ProviderPluginList.qml0000644000015201777760000000244312315270143031456 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 ProvidersList { id: root property variant __creationPage: null signal creationFinished onProviderClicked: { __creationPage = accountCreationPage.createObject(null, { "providerId": providerId }) __creationPage.finished.connect(__onCreationFinished) pageStack.push(__creationPage) } function __onCreationFinished() { __creationPage.destroy(1000) __creationPage.finished.disconnect(__onCreationFinished) __creationPage = null creationFinished() } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/AccountCreationPage.qml0000644000015201777760000000304012315270143031521 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.OnlineAccounts 0.1 Page { id: root property string providerId signal finished title: account.provider.displayName Account { id: account objectHandle: Manager.createAccount(providerId) } Loader { id: loader property var account: account anchors.fill: parent source: qmlPluginPath + providerId + "/Main.qml" onLoaded: checkFlickable() Connections { target: loader.item onFinished: { console.log("====== PLUGIN FINISHED ======") finished() } } function checkFlickable() { if (item.hasOwnProperty("flickable")) { root.flickable = item.flickable } } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/qml/AccountsPage.qml0000644000015201777760000000361112315270143030223 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem Flickable { id: root property variant accountsModel contentHeight: contentItem.childrenRect.height boundsBehavior: Flickable.StopAtBounds Column { anchors.left: parent.left anchors.right: parent.right ListView { anchors.left: parent.left anchors.right: parent.right interactive: false height: contentHeight model: accountsModel delegate: AccountItem { ListView.delayRemove: running text: providerName subText: displayName accountHandle: model.accountHandle globalServiceHandle: accountServiceHandle } } ListItem.SingleControl { control: Button { text: i18n.tr("Add account…") width: parent.width - units.gu(4) onClicked: pageStack.push(newAccountPage) } showDivider: false } AddAccountLabel {} } Component { id: newAccountPage NewAccountPage {} } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/provider-request.h0000644000015201777760000000257212315270143030041 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_PROVIDER_REQUEST_H #define OAU_PROVIDER_REQUEST_H #include "request.h" namespace OnlineAccountsUi { class ProviderRequestPrivate; class ProviderRequest: public Request { Q_OBJECT public: explicit ProviderRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent = 0); ~ProviderRequest(); void start() Q_DECL_OVERRIDE; private: ProviderRequestPrivate *d_ptr; Q_DECLARE_PRIVATE(ProviderRequest) }; } // namespace #endif // OAU_PROVIDER_REQUEST_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/globals.h0000644000015201777760000000261112315270143026136 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_GLOBALS_H #define OAU_GLOBALS_H #define OAU_SERVICE_NAME QStringLiteral("com.canonical.OnlineAccountsUi") #define OAU_OBJECT_PATH QStringLiteral("/") #define OAU_KEY_PROVIDER QStringLiteral("provider") #define OAU_KEY_SERVICE_TYPE QStringLiteral("serviceType") #define OAU_KEY_WINDOW_ID QStringLiteral("windowId") // D-Bus error names #define OAU_ERROR_PREFIX "com.canonical.OnlineAccountsUi." #define OAU_ERROR_USER_CANCELED \ QStringLiteral(OAU_ERROR_PREFIX "UserCanceled") #define OAU_ERROR_INVALID_PARAMETERS \ QStringLiteral(OAU_ERROR_PREFIX "InvalidParameters") #endif // OAU_GLOBALS_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/request.h0000644000015201777760000000377012315270143026212 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_REQUEST_H #define OAU_REQUEST_H #include #include #include #include #include namespace OnlineAccountsUi { class RequestPrivate; class Request: public QObject { Q_OBJECT public: static Request *newRequest(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent = 0); ~Request(); WId windowId() const; bool isInProgress() const; const QVariantMap ¶meters() const; QString clientApparmorProfile() const; public Q_SLOTS: virtual void start(); void cancel(); Q_SIGNALS: void completed(); protected: explicit Request(const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap ¶meters, QObject *parent = 0); void setWindow(QWindow *window); protected Q_SLOTS: void fail(const QString &name, const QString &message); void setCanceled(); void setResult(const QVariantMap &result); private: RequestPrivate *d_ptr; Q_DECLARE_PRIVATE(Request) }; } // namespace #endif // OAU_REQUEST_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/application-manager.h0000644000015201777760000000300212315270143030421 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef OAU_APPLICATION_MANAGER_H #define OAU_APPLICATION_MANAGER_H #include #include namespace OnlineAccountsUi { class ApplicationManagerPrivate; class ApplicationManager: public QObject { Q_OBJECT public: static ApplicationManager *instance(); Q_INVOKABLE QVariantMap applicationInfo(const QString &applicationId, const QString &profile); QVariantMap providerInfo(const QString &providerId) const; protected: explicit ApplicationManager(QObject *parent = 0); ~ApplicationManager(); private: static ApplicationManager *m_instance; ApplicationManagerPrivate *d_ptr; Q_DECLARE_PRIVATE(ApplicationManager) }; } // namespace #endif // OAU_APPLICATION_MANAGER_H ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/0000755000015201777760000000000012315270412025626 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/OAuthMain.qml0000644000015201777760000000272012315270156030174 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.OnlineAccounts 0.1 Item { id: root property url creationComponentUrl: "OAuth.qml" property url editingComponentUrl: "Options.qml" property Component creationComponent: null property Component editingComponent: null property alias source: loader.source signal finished anchors.fill: parent Loader { id: loader anchors.fill: parent source: sourceComponent === null ? (account.accountId != 0 ? editingComponentUrl : creationComponentUrl) : "" sourceComponent: account.accountId != 0 ? editingComponent : creationComponent Connections { target: loader.item onFinished: root.finished() } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/qmldir.in0000644000015201777760000000032312315270143027445 0ustar pbusernogroup00000000000000module $${API_URI} OAuthMain 1.0 OAuthMain.qml OAuth 1.0 OAuth.qml Options 1.0 Options.qml RemovalConfirmation 1.0 RemovalConfirmation.qml ServiceItem 1.0 ServiceItem.qml ServiceSwitches 1.0 ServiceSwitches.qml ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/ServiceSwitches.qml0000644000015201777760000000254712315270143031464 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem import Ubuntu.OnlineAccounts 0.1 Column { id: root property variant account anchors.left: parent.left anchors.right: parent.right ListItem.Standard { text: i18n.dtr("ubuntu-system-settings-online-accounts", "Access to this account:") } AccountServiceModel { id: accountServices includeDisabled: true account: root.account.objectHandle } Repeater { model: accountServices delegate: ServiceItem { accountServiceHandle: model.accountServiceHandle } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/RemovalConfirmation.qml0000644000015201777760000000310512315270143032317 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem import Ubuntu.Components.Popups 0.1 Dialog { id: root property string accountName property bool confirmed: false signal closed title: i18n.dtr("ubuntu-system-settings-online-accounts", "Remove account") text: i18n.dtr("ubuntu-system-settings-online-accounts", "The %1 account will be removed only from your phone. You can add it again later.").arg(accountName) Button { text: i18n.dtr("ubuntu-system-settings-online-accounts", "Remove") onClicked: setConfirmed(true) } Button { text: i18n.dtr("ubuntu-system-settings-online-accounts", "Cancel") onClicked: setConfirmed(false) } function setConfirmed(isConfirmed) { confirmed = isConfirmed PopupUtils.close(root) closed() } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/OnlineAccountsPlugin.pc.in0000644000015201777760000000040512315270143032662 0ustar pbusernogroup00000000000000prefix=$$INSTALL_PREFIX exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include plugin_qml_dir=${prefix}/$${ONLINE_ACCOUNTS_PLUGIN_DIR_BASE} Name: $$TARGET Description: Online Accounts plugin module for Ubuntu Touch Version: $$PROJECT_VERSION ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/module.pro0000644000015201777760000000135412315270143027641 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) include($${TOP_SRC_DIR}/common-vars.pri) TEMPLATE = lib TARGET = OnlineAccountsPlugin API_URI = "Ubuntu.OnlineAccounts.Plugin" PLUGIN_INSTALL_BASE = $${PLUGIN_PRIVATE_MODULE_DIR}/$$replace(API_URI, \\., /) QML_SOURCES = \ OAuthMain.qml \ OAuth.qml \ Options.qml \ RemovalConfirmation.qml \ ServiceItem.qml \ ServiceSwitches.qml OTHER_FILES += $${QML_SOURCES} qml.files = $${QML_SOURCES} qml.path = $${PLUGIN_INSTALL_BASE} INSTALLS += qml QMLDIR_FILES += qmldir QMAKE_SUBSTITUTES += qmldir.in OTHER_FILES += qmldir.in qmldir.files = qmldir qmldir.path = $${PLUGIN_INSTALL_BASE} INSTALLS += qmldir pkgconfig.files = $${TARGET}.pc include($${TOP_SRC_DIR}/common-pkgconfig.pri) ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/OAuth.qml0000644000015201777760000001372412315270156027375 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem import Ubuntu.OnlineAccounts 0.1 Item { id: root /* To override the parameters coming from the .provider file: */ property variant authenticationParameters: {} /* To override the default access control list: */ property variant accessControlList: ["unconfined"] property variant authReply property bool isNewAccount: false property variant __account: account property bool __isAuthenticating: false property alias globalAccountService: globalAccountSettings property bool loading: true signal authenticated(variant reply) signal authenticationError(variant error) signal finished anchors.fill: parent Component.onCompleted: { isNewAccount = (account.accountId === 0) enableAccount() authenticate() } Credentials { id: creds caption: account.provider.id acl: accessControlList onCredentialsIdChanged: root.credentialsStored() } AccountService { id: globalAccountSettings objectHandle: account.accountServiceHandle credentials: creds autoSync: false onAuthenticated: { __isAuthenticating = false authReply = reply root.authenticated(reply) } onAuthenticationError: { __isAuthenticating = false root.authenticationError(error) } } AccountServiceModel { id: accountServices includeDisabled: true account: __account.objectHandle } ListItem.Base { visible: loading height: units.gu(7) showDivider: false anchors.top: parent.top Item { height: units.gu(5) width: units.gu(30) anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.margins: units.gu(1) ActivityIndicator { id: loadingIndicator anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: units.gu(5) running: loading z: 1 } Label { text: i18n.dtr("ubuntu-system-settings-online-accounts", "Loading…") anchors.verticalCenter: parent.verticalCenter anchors.left: loadingIndicator.right anchors.leftMargin: units.gu(3) } } } ListItem.SingleControl { anchors.bottom: parent.bottom showDivider: false control: Button { text: i18n.dtr("ubuntu-system-settings-online-accounts", "Cancel") width: parent.width - units.gu(4) onClicked: root.cancel() } } Component { id: accountServiceComponent AccountService { autoSync: false } } function authenticate() { console.log("Authenticating...") creds.sync() } function credentialsStored() { console.log("Credentials stored, id: " + creds.credentialsId) if (creds.credentialsId == 0) return var parameters = { "X-PageComponent": "file:///usr/share/signon-ui/online-accounts-ui/Page.qml" } for (var p in authenticationParameters) { parameters[p] = authenticationParameters[p] } __isAuthenticating = true globalAccountSettings.authenticate(parameters) } function cancel() { if (__isAuthenticating) { /* This will cause the authentication to fail, and this method will * be invoked again to delete the credentials. */ globalAccountSettings.cancelAuthentication() return } if (isNewAccount && creds.credentialsId != 0) { console.log("Removing credentials...") creds.remove() creds.removed.connect(finished) } else { finished() } } function enableAccount() { for (var i = 0; i < accountServices.count; i++) { var accountServiceHandle = accountServices.get(i, "accountService") var accountService = accountServiceComponent.createObject(null, { "objectHandle": accountServiceHandle }) accountService.updateServiceEnabled(true) accountService.destroy(1000) } globalAccountSettings.updateServiceEnabled(true) } function getUserName(reply) { /* This should work for OAuth 1.0a; for OAuth 2.0 this function needs * to be reimplemented */ if ('ScreenName' in reply) return reply.ScreenName else if ('UserId' in reply) return reply.UserId return '' } /* reimplement this function in plugins in order to perform some actions * before quitting the plugin */ function completeCreation(reply) { var userName = getUserName(reply) console.log("UserName: " + userName) if (userName != '') account.updateDisplayName(userName) account.synced.connect(finished) account.sync() } onAuthenticated: completeCreation(reply) onAuthenticationError: root.cancel() onFinished: loading = false } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/ServiceItem.qml0000644000015201777760000000320712315270143030563 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem import Ubuntu.OnlineAccounts 0.1 Item { property variant accountServiceHandle anchors.left: parent.left anchors.right: parent.right height: childrenRect.height Repeater { resources: AccountService { id: accountService objectHandle: accountServiceHandle } model: ApplicationModel { service: accountService.service.id } delegate: ListItem.Standard { text: model.displayName iconName: model.iconName control: Switch { checked: accountService.serviceEnabled onCheckedChanged: { if (checked != accountService.serviceEnabled) { accountService.updateServiceEnabled(checked) } } } } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/src/module/Options.qml0000644000015201777760000000376112315270143030004 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.Components.ListItems 0.1 as ListItem import Ubuntu.Components.Popups 0.1 import Ubuntu.OnlineAccounts 0.1 Column { id: root property variant __account: account signal finished anchors.left: parent.left anchors.right: parent.right ListItem.SingleValue { text: i18n.dtr("ubuntu-system-settings-online-accounts", "ID") value: account.displayName } ServiceSwitches { account: __account enabled: __account.enabled opacity: enabled ? 1 : 0.5 } ListItem.SingleControl { control: Button { text: i18n.dtr("ubuntu-system-settings-online-accounts", "Remove account…") width: parent.width - units.gu(4) onClicked: PopupUtils.open(removalConfirmationComponent) } showDivider: false } Component { id: removalConfirmationComponent RemovalConfirmation { accountName: __account.provider.displayName onClosed: { if (confirmed) { console.log("Removing account...") account.removed.connect(root.finished) account.remove(Account.RemoveCredentials) } } } } } ubuntu-system-settings-online-accounts-0.3+14.04.20140328/COPYING0000644000015201777760000010451312315270143024612 0ustar pbusernogroup00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, 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 General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ubuntu-system-settings-online-accounts-0.3+14.04.20140328/ubuntu-system-settings-online-accounts.pro0000644000015201777760000000054712315270143034104 0ustar pbusernogroup00000000000000include(common-vars.pri) include(common-project-config.pri) TEMPLATE = subdirs CONFIG += ordered SUBDIRS = \ po \ src \ client \ system-settings-plugin \ plugins \ tests include(common-installs-config.pri) DISTNAME = $${PROJECT_NAME}-$${PROJECT_VERSION} dist.commands = "bzr export $${DISTNAME}.tar.bz2" QMAKE_EXTRA_TARGETS += dist ubuntu-system-settings-online-accounts-0.3+14.04.20140328/plugins/0000755000015201777760000000000012315270412025233 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/plugins/plugins.pro0000644000015201777760000000005312315270143027435 0ustar pbusernogroup00000000000000TEMPLATE = subdirs SUBDIRS = \ example ubuntu-system-settings-online-accounts-0.3+14.04.20140328/plugins/example/0000755000015201777760000000000012315270412026666 5ustar pbusernogroup00000000000000ubuntu-system-settings-online-accounts-0.3+14.04.20140328/plugins/example/example.pro0000644000015201777760000000075012315270143031046 0ustar pbusernogroup00000000000000include(../../common-project-config.pri) include($${TOP_SRC_DIR}/common-vars.pri) TEMPLATE = lib TARGET = example QML_SOURCES = \ Main.qml OTHER_FILES += \ $${QML_SOURCES} \ example.provider provider.files = example.provider provider.path = $$system("pkg-config --define-variable=prefix=$${INSTALL_PREFIX} --variable providerfilesdir libaccounts-glib") INSTALLS += provider qml.files = $${QML_SOURCES} qml.path = $${ONLINE_ACCOUNTS_PLUGIN_DIR}/$${TARGET} INSTALLS += qml ubuntu-system-settings-online-accounts-0.3+14.04.20140328/plugins/example/example.provider0000644000015201777760000000030412315270143032073 0ustar pbusernogroup00000000000000 Example.com facebook ubuntu-system-settings-online-accounts ubuntu-system-settings-online-accounts-0.3+14.04.20140328/plugins/example/Main.qml0000644000015201777760000000225512315270143030272 0ustar pbusernogroup00000000000000/* * Copyright (C) 2013 Canonical Ltd. * * Contact: Alberto Mardegan * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ import QtQuick 2.0 import Ubuntu.Components 0.1 import Ubuntu.OnlineAccounts 0.1 Column { id: root property string domain: "ubuntu-system-settings-online-accounts" anchors.left: parent.left anchors.right: parent.right TextField { id: userName placeholderText: i18n.dtr(domain, "User name") readOnly: account.accountId != 0 } TextField { id: password placeholderText: i18n.dtr(domain, "Password") } }