Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
Paolo Capriotti committed Dec 16, 2010
0 parents commit aa435b8
Show file tree
Hide file tree
Showing 169 changed files with 191,104 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitignore
@@ -0,0 +1,30 @@
Makefile*
.moc
.obj
lib*.so*
*.a
*.prl
tests/model_example/model_example
tests/group_example/group_example
tests/async_example/async_example
modeltest
conversationmodeltest
groupmodeltest
callmodeltest
draftmodeltest
smsinboxmodeltest
outboxmodeltest
*~
doc/html
doc/libcommhistory.tags
tools/commhistory-tool
.project
.cproject
*.pro.user*
core
core.*
*-stamp
tests/ut_unreadeventsmodel/ut_unreadeventsmodel
tests/bin/*
.dotest/
tests/perf_bin/*
Empty file added NEWS
Whitespace-only changes.
22 changes: 22 additions & 0 deletions README
@@ -0,0 +1,22 @@
README
--------

How to quickly generate test conversations:
===========================================

Ensure that your D-BUS is set up correctly, by either sourcing
/tmp/session_bus_address.user or using dui-run.

% commhistory-tool add -newgroup gabble/jabber/user1 friend@gmail.com 10
% commhistory-tool add -newgroup gabble/jabber/user2 another@jabber.org 10
...

where "gabble/jabber/..." is the local telepathy account and 10 is the
number of messages to create. Use listgroups and "add -group <id>" to
add new messages into an existing conversation.

"commhistory-tool deleteall" removes all messages and conversations from
the tracker database. For best results (i.e. to avoid weird sync
problems), kill all applications that use commhistory before deleteall
and restart afterwards.

83 changes: 83 additions & 0 deletions common-installs-config.pri
@@ -0,0 +1,83 @@
###############################################################################
#
# This file is part of libcommhistory.
#
# 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")

# 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/CommHistory
INSTALLS += headers
message("====")
message("==== INSTALLS += headers")
} else {
message("====")
message("==== NOTE: Remember to add your API headers into `headers.files' for installation!")
}


# End of File
40 changes: 40 additions & 0 deletions common-project-config.pri
@@ -0,0 +1,40 @@
###############################################################################
#
# This file is part of libcommhistory.
#
# 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

# we don't like warnings...
QMAKE_CXXFLAGS *= -Werror


# End of File

46 changes: 46 additions & 0 deletions common-vars.pri
@@ -0,0 +1,46 @@
###############################################################################
#
# This file is part of libcommhistory.
#
# 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 = libcommhistory

#------------------------------------------------------------------------------
# Project version
# remember to update debian/* files if you changes this
#-----------------------------------------------------------------------------
PROJECT_VERSION = 1.0.35

#------------------------------------------------------------------------------
# Library version
#------------------------------------------------------------------------------
LIBRARY_VERSION = 0.0.1


# End of File

94 changes: 94 additions & 0 deletions doc/doc.pri
@@ -0,0 +1,94 @@
###############################################################################
#
# This file is part of libcommhistory.
#
# 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
#
###############################################################################

#-----------------------------------------------------------------------------
# doc.pri
#-----------------------------------------------------------------------------

# list of documentation folders to install
DOC_FOLDERS = doc/html \
doc/qch

# files and folders listed in the installation target's .files section
# must exist _before_ qmake generates the Makefile...so, make sure our
# documentation target folders exist in the current build folder
for( folder, DOC_FOLDERS ) {
system( mkdir -p $$(PWD)/$${folder} )
}


#-----------------------------------------------------------------------------
# extra build targets for generating and cleaning documentation
#-----------------------------------------------------------------------------
for( subdir, SUBDIRS) {
DOC_INPUT += $${_PRO_FILE_PWD_}/$${subdir}
}

# target for generating documentation
doctarget.target = docs
doctarget.commands = OUTPUT_DIRECTORY=doc \
PROJECT_NAME=\"$${PROJECT_NAME}\" \
PROJECT_NUMBER=\"$${PROJECT_VERSION}\" \
STRIP_FROM_PATH=\"$${_PRO_FILE_PWD_}\" \
INPUT=\"$${DOC_INPUT}\" \
QHP_NAMESPACE=\"com.nokia.example.$${TARGET}\" \
QHP_VIRTUAL_FOLDER=\"$${TARGET}\" \
TAGFILES=\"$$system(pwd)/qt.tags\" \
TAGFILE=\"doc/$${TARGET}.tags\" \
doxygen $$system(pwd)/doxy.conf
doctarget.depends = FORCE
QMAKE_EXTRA_TARGETS += doctarget


# target for cleaning generated documentation
doccleantarget.target = cleandocs
for( folder, DOC_FOLDERS ) {
doccleantarget.commands += rm -r -f $${folder};
}
doccleantarget.commands += rm -r -f doc/libeventlogger.tags;
doccleantarget.depends = FORCE
QMAKE_EXTRA_TARGETS += doccleantarget


#-----------------------------------------------------------------------------
# installation setup
# NOTE: remember to set headers.files before this include to have the headers
# properly setup.
#-----------------------------------------------------------------------------
include( ../common-installs-config.pri )


#-----------------------------------------------------------------------------
# Installation target setup for documentation
#-----------------------------------------------------------------------------
documentation.path = $${INSTALL_PREFIX}/share/doc/$${PROJECT_NAME}
for( folder, DOC_FOLDERS ) {
documentation.files += $${OUT_PWD}/$${folder}
}

INSTALLS += documentation
message("====")
message("==== INSTALLS += documentation")


# End of File

0 comments on commit aa435b8

Please sign in to comment.