Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Capriotti committed Dec 20, 2010
0 parents commit 1c412bc
Show file tree
Hide file tree
Showing 72 changed files with 9,266 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
@@ -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
1 change: 1 addition & 0 deletions INSTALL
@@ -0,0 +1 @@

Empty file added NOTES
Empty file.
1 change: 1 addition & 0 deletions README
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions TODO
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions commhistory-daemon.pro
@@ -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

99 changes: 99 additions & 0 deletions common-installs-config.pri
@@ -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
47 changes: 47 additions & 0 deletions common-project-config.pri
@@ -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

45 changes: 45 additions & 0 deletions common-vars.pri
@@ -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\\\""
25 changes: 25 additions & 0 deletions data/CommHistory.client
@@ -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
3 changes: 3 additions & 0 deletions data/com.nokia.CommHistory.service
@@ -0,0 +1,3 @@
[D-BUS Service]
Name=com.nokia.CommHistory
Exec=/usr/bin/commhistoryd
32 changes: 32 additions & 0 deletions data/commhistoryd-cud.sh
@@ -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

34 changes: 34 additions & 0 deletions data/commhistoryd.prestart
@@ -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

0 comments on commit 1c412bc

Please sign in to comment.