Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sociald] Add LGPLv2.1 license headers. Contributes to JB#19333
This commit adds the LGPLv2.1 license headers to every source file
and also adds the full LGPLv2.1 COPYING text to the repository.

Contributes to JB#19333
  • Loading branch information
Chris Adams committed Jun 13, 2014
1 parent 2be35a5 commit d32acb3
Show file tree
Hide file tree
Showing 80 changed files with 1,666 additions and 96 deletions.
503 changes: 503 additions & 0 deletions COPYING

Large diffs are not rendered by default.

20 changes: 15 additions & 5 deletions README
@@ -1,5 +1,15 @@
sociald is a daemon process which provides data synchronisation with
various social services (such as Facebook and Google+).
It supports synchronising data of various types (contacts, calendar
events, notifications, etc) either via manual invocation via DBus
or via polling timers.
This repository contains plugins which can provide data synchronization
with various social services (such as Facebook and Twitter).

It provides a basic structure which is intended to be simple to extend
to allow more plugins to be written for further social services or data
synchronization services. The framework supports synchronizing data of
various types (contacts, calendar events, notifications, etc).

The plugins are Buteo synchronization framework plugins.
Each plugin can be built either in out-of-process mode or in-process
mode (that is, as a shared library or standalone executable).

The code in this repository is LGPLv2.1 licensed. Any contributions to
this repository must be of either this license or a less restrictive
license (such as BSD license).
28 changes: 14 additions & 14 deletions rpm/sociald.spec
Expand Up @@ -3,7 +3,7 @@ Summary: Syncs device data from social services
Version: 0.0.108
Release: 1
Group: System/Libraries
License: TBD
License: LGPLv2.1
URL: https://bitbucket.org/jolla/base-sociald
Source0: %{name}-%{version}.tar.bz2
BuildRequires: pkgconfig(Qt5Core)
Expand Down Expand Up @@ -39,7 +39,7 @@ A Buteo plugin which provides data synchronization with various social services.

%package facebook-calendars
Summary: Provides calendar synchronisation with Facebook
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: pkgconfig(libmkcal-qt5)
BuildRequires: pkgconfig(libkcalcoren-qt5)
Expand All @@ -66,7 +66,7 @@ systemctl-user restart msyncd.service || :

%package facebook-contacts
Summary: Provides contact synchronisation with Facebook
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: pkgconfig(Qt5Contacts)
BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions)
Expand All @@ -93,7 +93,7 @@ systemctl-user restart msyncd.service || :

%package facebook-images
Summary: Provides image synchronisation with Facebook
License: TBD
License: LGPLv2.1
Group: System/Libraries
Requires: %{name} = %{version}-%{release}

Expand All @@ -118,7 +118,7 @@ systemctl-user restart msyncd.service || :

%package facebook-notifications
Summary: Provides notification synchronisation with Facebook
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: nemo-qml-plugin-notifications-qt5-devel
BuildRequires: libmeegotouchevents-qt5-devel
Expand Down Expand Up @@ -147,7 +147,7 @@ systemctl-user restart msyncd.service || :

%package facebook-posts
Summary: Provides post synchronisation with Facebook
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: pkgconfig(Qt5Contacts)
BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions)
Expand Down Expand Up @@ -176,7 +176,7 @@ systemctl-user restart msyncd.service || :

%package facebook-signon
Summary: Provides signon credentials refreshing with Facebook
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}
Expand All @@ -203,7 +203,7 @@ systemctl-user restart msyncd.service || :

%package google-calendars
Summary: Provides calendar synchronisation with Google
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: pkgconfig(libmkcal-qt5)
BuildRequires: pkgconfig(libkcalcoren-qt5)
Expand All @@ -230,7 +230,7 @@ systemctl-user restart msyncd.service || :

%package google-contacts
Summary: Provides contact synchronisation with Google
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: pkgconfig(Qt5Contacts)
BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions) >= 0.1.58
Expand All @@ -257,7 +257,7 @@ systemctl-user restart msyncd.service || :

%package google-signon
Summary: Provides signon credentials refreshing with Google
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}
Expand All @@ -284,7 +284,7 @@ systemctl-user restart msyncd.service || :

%package twitter-notifications
Summary: Provides notification synchronisation with Twitter
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: pkgconfig(Qt5Contacts)
BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions)
Expand Down Expand Up @@ -316,7 +316,7 @@ systemctl-user restart msyncd.service || :

%package twitter-posts
Summary: Provides post synchronisation with Twitter
License: TBD
License: LGPLv2.1
Group: System/Libraries
BuildRequires: pkgconfig(Qt5Contacts)
BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions)
Expand Down Expand Up @@ -345,7 +345,7 @@ systemctl-user restart msyncd.service || :

%package ts-devel
Summary: Translation source for sociald
License: TBD
License: LGPLv2.1
Group: System/Applications

%description ts-devel
Expand All @@ -357,7 +357,7 @@ Translation source for sociald

%package tests
Summary: Automatable tests for sociald
License: TBD
License: LGPLv2.1
Group: System/Applications
BuildRequires: pkgconfig(Qt5Test)
Requires: qt5-qtdeclarative-devel-tools
Expand Down
14 changes: 14 additions & 0 deletions src/common/buteosyncfw_p.h
Expand Up @@ -3,6 +3,20 @@
** Copyright (C) 2014 Jolla Ltd.
** Contact: Chris Adams <chris.adams@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#ifndef SOCIALD_BUTEOSYNCFW_P_H
Expand Down
16 changes: 15 additions & 1 deletion src/common/constants_p.h
@@ -1,8 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: Raine Makelainen <raine.makelainen@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#ifndef SOCIALD_CONSTANTS_P_H
Expand Down
14 changes: 14 additions & 0 deletions src/common/socialdbuteoplugin.cpp
Expand Up @@ -3,6 +3,20 @@
** Copyright (C) 2014 Jolla Ltd.
** Contact: Chris Adams <chris.adams@jolla.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#include "socialdbuteoplugin.h"
Expand Down
16 changes: 15 additions & 1 deletion src/common/socialdbuteoplugin.h
@@ -1,8 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: Raine Makelainen <raine.makelainen@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#ifndef SOCIALDBUTEOPLUGIN_H
Expand Down
16 changes: 15 additions & 1 deletion src/common/socialdnetworkaccessmanager_p.cpp
@@ -1,8 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: Chris Adams <chris.adams@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#include "socialdnetworkaccessmanager_p.h"
Expand Down
16 changes: 15 additions & 1 deletion src/common/socialdnetworkaccessmanager_p.h
@@ -1,8 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: Chris Adams <chris.adams@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#ifndef SOCIALD_QNAMFACTORY_P_H
Expand Down
37 changes: 15 additions & 22 deletions src/common/socialnetworksyncadaptor.cpp
@@ -1,8 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: Chris Adams <chris.adams@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#include "socialnetworksyncadaptor.h"
Expand All @@ -29,27 +43,6 @@
// libsocialcache
#include <socialnetworksyncdatabase.h>

/*
Remarks on timestamps
The timezone issue is a pretty big one, as services might
provide time in different timezone, and that the user might
be in another timezone.
To make everything consistant, all time should be stored using
UTC time. It is because Qt might have some troubles storing
timezone in SQLITE databases. (Or is it SQLITE that have
some troubles with timezone ?)
Beware however, that all our APIs (eventfeed, notification)
uses local time. So you have to perform a conversion before
using date and time retrieved from the SQLITE database.
By convention, all methods in sociald returning QDateTime
object will return the UTC time, with their timeSpec set to
Qt::UTC. Be sure to perform conversion before using them.
*/

namespace {
QStringList validDataTypesInitialiser()
{
Expand Down
18 changes: 16 additions & 2 deletions src/common/socialnetworksyncadaptor.h
@@ -1,8 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: Chris Adams <chris.adams@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#ifndef SOCIALNETWORKSYNCADAPTOR_H
Expand Down Expand Up @@ -69,7 +83,7 @@ class SocialNetworkSyncAdaptor : public QObject
bool enabled() const;
QString serviceName() const;
void checkAccounts(SocialNetworkSyncAdaptor::DataType dataType, QList<int> *newIds, QList<int> *purgeIds, QList<int> *updateIds);
virtual void sync(const QString &dataType, int accountId = 0); // do we need a "queueSync"? should this function have a return value?
virtual void sync(const QString &dataType, int accountId = 0);
virtual void purgeDataForOldAccounts(const QList<int> &accountIds) = 0;

Q_SIGNALS:
Expand Down
16 changes: 15 additions & 1 deletion src/common/trace.h
@@ -1,8 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: Chris Adams <chris.adams@jollamobile.com>
**
** This program/library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public License
** version 2.1 as published by the Free Software Foundation.
**
** This program/library 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 this program/library; if not, write to the Free
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
** 02110-1301 USA
**
****************************************************************************/

#ifndef TRACE_H
Expand Down

0 comments on commit d32acb3

Please sign in to comment.