Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paolo Capriotti
committed
Dec 20, 2010
0 parents
commit 1c412bc
Showing
72 changed files
with
9,266 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*.o | ||
*~ | ||
moc_* | ||
commhistoryd | ||
tests/commhistorytest | ||
Makefile | ||
*.pro.user* | ||
.cproject | ||
.project | ||
build-stamp | ||
builddir/ | ||
configure-stamp | ||
tests/bin/ | ||
translations/telephony/telephony.qm | ||
translations/messaging/messaging.qm | ||
translations/commhistoryd.qm | ||
translations/commhistoryd.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
############################################################################### | ||
# | ||
# This file is part of commhistory-daemon. | ||
# | ||
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
# Contact: Alexander Shalamov <alexander.shalamov@nokia.com> | ||
# | ||
# This 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 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 library; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
# | ||
############################################################################### | ||
|
||
TEMPLATE = subdirs | ||
SUBDIRS = src data tests translations | ||
CONFIG += ordered | ||
|
||
|
||
# End of File | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
############################################################################### | ||
# | ||
# This file is part of commhistory-daemon. | ||
# | ||
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
# Contact: Alexander Shalamov <alexander.shalamov@nokia.com> | ||
# | ||
# This 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 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 library; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
# | ||
############################################################################### | ||
|
||
#----------------------------------------------------------------------------- | ||
# Common installation configuration for all projects. | ||
#----------------------------------------------------------------------------- | ||
|
||
|
||
#----------------------------------------------------------------------------- | ||
# 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}'") | ||
} | ||
|
||
|
||
#----------------------------------------------------------------------------- | ||
# 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 ) { | ||
|
||
target.path = $${INSTALL_PREFIX}/lib | ||
INSTALLS += target | ||
message("====") | ||
message("==== INSTALLS += target") | ||
|
||
|
||
#------------------------------------------------------------------------- | ||
# target for pkg-config file | ||
#------------------------------------------------------------------------- | ||
CONFIG *= create_prl create_pc | ||
message("====") | ||
message("==== Generating new pkg-config metadata file: $${TARGET}.pc") | ||
message("==== NOTE: Remember to verify the `prefix' path in your .pc file!") | ||
message("==== (it should be $${INSTALL_PREFIX})") | ||
pkgconfig.files = $${TARGET}.pc | ||
pkgconfig.path = $${INSTALL_PREFIX}/lib/pkgconfig | ||
INSTALLS += pkgconfig | ||
message("====") | ||
message("==== INSTALLS += pkgconfig") | ||
|
||
# reset the .pc file's `prefix' variable | ||
include( tools/fix-pc-prefix.pri ) | ||
|
||
} | ||
|
||
#----------------------------------------------------------------------------- | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
############################################################################### | ||
# | ||
# This file is part of commhistory-daemon. | ||
# | ||
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
# Contact: Alexander Shalamov <alexander.shalamov@nokia.com> | ||
# | ||
# This 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 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 library; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
# | ||
############################################################################### | ||
|
||
#----------------------------------------------------------------------------- | ||
# Common configuration for all projects. | ||
#----------------------------------------------------------------------------- | ||
|
||
CONFIG += link_pkgconfig | ||
MOC_DIR = .moc | ||
OBJECTS_DIR = .obj | ||
RCC_DIR = resources | ||
UI_DIR = ui | ||
UI_HEADERS_DIR = ui/include | ||
UI_SOURCES_DIR = ui/src | ||
QT -= thread | ||
|
||
# we don't like warnings... | ||
QMAKE_CXXFLAGS *= -Werror -Wall -fno-exceptions | ||
|
||
#----------------------------------------------------------------------------- | ||
# Project's data directories | ||
#----------------------------------------------------------------------------- | ||
COMMHISTORYD_DATADIR=".commhistoryd" | ||
DEFINES += COMMHISTORYD_DATADIR="\\\"$$COMMHISTORYD_DATADIR\\\"" | ||
DEFINES += COMMHISTORYD_VCARDSDIR="\\\"$$COMMHISTORYD_DATADIR/vcards\\\"" | ||
|
||
# End of File | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
############################################################################### | ||
# | ||
# This file is part of commhistory-daemon. | ||
# | ||
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
# Contact: Alexander Shalamov <alexander.shalamov@nokia.com> | ||
# | ||
# This 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 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 library; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
# | ||
############################################################################### | ||
|
||
# ----------------------------------------------------------------------------- | ||
# 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 = commhistory-daemon | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Project version | ||
# remember to update debian/* files if you changes this | ||
# ----------------------------------------------------------------------------- | ||
PROJECT_VERSION = 0.0.26 | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Project's data directories | ||
# ----------------------------------------------------------------------------- | ||
COMMHISTORYD_DATADIR = ".commhistoryd" | ||
DEFINES += COMMHISTORYD_DATADIR="\\\"$$COMMHISTORYD_DATADIR\\\"" | ||
DEFINES += COMMHISTORYD_VCARDSDIR="\\\"$$COMMHISTORYD_DATADIR/vcards\\\"" | ||
DEFINES += COMMHISTORYD_NOTIFICATIONSDIR="\\\"/$$COMMHISTORYD_DATADIR/notifications\\\"" | ||
DEFINES += COMMHISTORYD_NOTIFICATIONSSTORAGE="\\\"/$$COMMHISTORYD_DATADIR/notifications/storage.dat\\\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[org.freedesktop.Telepathy.Client] | ||
Interfaces=org.freedesktop.Telepathy.Client.Observer; | ||
|
||
[org.freedesktop.Telepathy.Client.Observer] | ||
Recover=true | ||
|
||
[org.freedesktop.Telepathy.Client.Observer.ObserverChannelFilter 0] | ||
org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text | ||
org.freedesktop.Telepathy.Channel.TargetHandleType u=0 | ||
|
||
[org.freedesktop.Telepathy.Client.Observer.ObserverChannelFilter 1] | ||
org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text | ||
org.freedesktop.Telepathy.Channel.TargetHandleType u=1 | ||
|
||
[org.freedesktop.Telepathy.Client.Observer.ObserverChannelFilter 2] | ||
org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text | ||
org.freedesktop.Telepathy.Channel.TargetHandleType u=2 | ||
|
||
[org.freedesktop.Telepathy.Client.Observer.ObserverChannelFilter 3] | ||
org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.StreamedMedia | ||
org.freedesktop.Telepathy.Channel.TargetHandleType u=1 | ||
|
||
[org.freedesktop.Telepathy.Client.Observer.ObserverChannelFilter 4] | ||
org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.StreamedMedia | ||
org.freedesktop.Telepathy.Channel.TargetHandleType u=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[D-BUS Service] | ||
Name=com.nokia.CommHistory | ||
Exec=/usr/bin/commhistoryd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#! /bin/sh | ||
############################################################################### | ||
# | ||
# This file is part of commhistory-daemon. | ||
# | ||
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
# Contact: Alexander Shalamov <alexander.shalamov@nokia.com> | ||
# | ||
# This 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 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 library; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
# | ||
############################################################################### | ||
|
||
############################################################################### | ||
# The Clear User Data script for CommHistory Daemon | ||
############################################################################### | ||
|
||
RM='rm -rf' | ||
DATA='/home/user/.commhistoryd' | ||
|
||
$RM $DATA | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
############################################################################### | ||
# | ||
# This file is part of commhistory-daemon. | ||
# | ||
# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
# Contact: Alexander Shalamov <alexander.shalamov@nokia.com> | ||
# | ||
# This 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 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 library; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
# | ||
############################################################################### | ||
|
||
# D-Bus service for commhistoryd | ||
Service=com.nokia.CommHistory | ||
|
||
# Applications with priority level less than zero will be prestarted | ||
# immediately, one by one, when applifed has been started and before it | ||
# daemonizes itself. Applications with the smallest priority level will be | ||
# started first. | ||
# | ||
# Applications with priority level greater or equal to zero will be | ||
# prestarted when system load goes down and there is still enough memory. | ||
# In practice, this means that desktop is already up and running. | ||
Priority=1 |
Oops, something went wrong.