Commit 107b5032 authored by Tobias Koenig's avatar Tobias Koenig

Add new library akonadi-kabc, which contains the PartIdentifiers for

contact data and later the convenience models as well.

svn path=/trunk/KDE/kdepimlibs/; revision=860315
parent 7c7aa4f3
include_directories(
${CMAKE_SOURCE_DIR}/
${QT_QTDBUS_INCLUDE_DIR}
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII ${KDE4_ENABLE_EXCEPTIONS}" )
########### next target ###############
set( kabcakonadi_LIB_SRC
contactparts.cpp
)
kde4_add_library( akonadi-kabc SHARED ${kabcakonadi_LIB_SRC} )
target_link_libraries( akonadi-kabc akonadi-kde ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KABC_LIBS} )
set_target_properties( akonadi-kabc PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS akonadi-kabc ${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install( FILES
akonadi-kabc_export.h
contactparts.h
DESTINATION ${INCLUDE_INSTALL_DIR}/akonadi/kabc COMPONENT Devel
)
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef AKONADI_KABC_EXPORT_H
#define AKONADI_KABC_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef AKONADI_KABC_EXPORT
# if defined(MAKE_AKONADI_KABC_LIB)
/* We are building this library */
# define AKONADI_KABC_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define AKONADI_KABC_EXPORT KDE_IMPORT
# endif
#endif
#endif
/*
Copyright (c) 2008 Tobias Koenig <tokoe@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "contactparts.h"
const char* Akonadi::ContactPart::Lookup = "CONTACT_LOOKUP";
const char* Akonadi::ContactPart::Standard = "CONTACT_STANDARD";
/*
Copyright (c) 2008 Tobias Koenig <tokoe@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef AKONADI_CONTACTPARTS_H
#define AKONADI_CONTACTPARTS_H
#include "akonadi-kabc_export.h"
namespace Akonadi
{
/**
* @short Contains predefined part identifiers.
*
* This namespace contains identifiers of item parts that are used for
* handling contact items.
*/
namespace ContactPart
{
/**
* The part identifier for a small contact version,
* that contains only name and email addresses.
*/
AKONADI_KABC_EXPORT extern const char* Lookup;
/**
* The part identifier for all the contact data except
* images and sounds.
*
* @note Use Akonadi::Item::FullPayload to retrieve the
* full contact including images and sounds.
*/
AKONADI_KABC_EXPORT extern const char* Standard;
}
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment