Merge lp:~phablet-team/messaging-framework/add-dummy-protocol into lp:messaging-framework

Proposed by Tiago Salem Herrmann
Status: Approved
Approved by: Gustavo Pichorim Boiko
Approved revision: 81
Proposed branch: lp:~phablet-team/messaging-framework/add-dummy-protocol
Merge into: lp:messaging-framework
Prerequisite: lp:~phablet-team/messaging-framework/multiple_api_fixes
Diff against target: 4134 lines (+3866/-0)
48 files modified
CMakeLists.txt (+2/-0)
debian/control.in (+6/-0)
debian/mfw-plugin-dummy.install (+6/-0)
examples/CMakeLists.txt (+1/-0)
examples/mfw-plugin-dummy/CMakeLists.txt (+61/-0)
examples/mfw-plugin-dummy/cmake/EnableCoverageReport.cmake (+153/-0)
examples/mfw-plugin-dummy/cmake/FindGLog.cmake (+14/-0)
examples/mfw-plugin-dummy/cmake/FindLcov.cmake (+29/-0)
examples/mfw-plugin-dummy/cmake/Findgcovr.cmake (+31/-0)
examples/mfw-plugin-dummy/cmake/LibFindMacros.cmake (+112/-0)
examples/mfw-plugin-dummy/cmake/ParseArguments.cmake (+52/-0)
examples/mfw-plugin-dummy/data/CMakeLists.txt (+63/-0)
examples/mfw-plugin-dummy/data/cmake_uninstall.cmake.in (+22/-0)
examples/mfw-plugin-dummy/data/dummy.manager.in (+10/-0)
examples/mfw-plugin-dummy/data/dummy.protocol.in (+16/-0)
examples/mfw-plugin-dummy/data/dummy.service.in (+3/-0)
examples/mfw-plugin-dummy/debian/changelog (+5/-0)
examples/mfw-plugin-dummy/debian/compat (+1/-0)
examples/mfw-plugin-dummy/debian/control (+31/-0)
examples/mfw-plugin-dummy/debian/copyright (+22/-0)
examples/mfw-plugin-dummy/debian/rules (+19/-0)
examples/mfw-plugin-dummy/debian/source/format (+1/-0)
examples/mfw-plugin-dummy/doc/CMakeLists.txt (+21/-0)
examples/mfw-plugin-dummy/doc/Doxyfile.in (+1869/-0)
examples/mfw-plugin-dummy/include/CMakeLists.txt (+3/-0)
examples/mfw-plugin-dummy/include/dummy/chat.h (+31/-0)
examples/mfw-plugin-dummy/include/dummy/connection.h (+98/-0)
examples/mfw-plugin-dummy/include/dummy/connector.h (+58/-0)
examples/mfw-plugin-dummy/include/dummy/contact_chat.h (+54/-0)
examples/mfw-plugin-dummy/include/dummy/group_chat.h (+50/-0)
examples/mfw-plugin-dummy/include/dummy/group_manager.h (+72/-0)
examples/mfw-plugin-dummy/include/dummy/group_starter.h (+52/-0)
examples/mfw-plugin-dummy/include/dummy/messenger.h (+50/-0)
examples/mfw-plugin-dummy/include/dummy/presence_manager.h (+40/-0)
examples/mfw-plugin-dummy/include/dummy/recipient.h (+19/-0)
examples/mfw-plugin-dummy/include/dummy/user.h (+31/-0)
examples/mfw-plugin-dummy/include/dummy/visibility.h (+7/-0)
examples/mfw-plugin-dummy/src/CMakeLists.txt (+43/-0)
examples/mfw-plugin-dummy/src/dummy/chat.cpp (+30/-0)
examples/mfw-plugin-dummy/src/dummy/connection.cpp (+132/-0)
examples/mfw-plugin-dummy/src/dummy/connector.cpp (+95/-0)
examples/mfw-plugin-dummy/src/dummy/contact_chat.cpp (+58/-0)
examples/mfw-plugin-dummy/src/dummy/group_chat.cpp (+50/-0)
examples/mfw-plugin-dummy/src/dummy/group_manager.cpp (+114/-0)
examples/mfw-plugin-dummy/src/dummy/group_starter.cpp (+85/-0)
examples/mfw-plugin-dummy/src/dummy/messenger.cpp (+71/-0)
examples/mfw-plugin-dummy/src/dummy/presence_manager.cpp (+59/-0)
examples/mfw-plugin-dummy/src/dummy/user.cpp (+14/-0)
To merge this branch: bzr merge lp:~phablet-team/messaging-framework/add-dummy-protocol
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
Gustavo Pichorim Boiko (community) Approve
Review via email: mp+320528@code.launchpad.net

Commit message

Add dummy protocol implementation.

Description of the change

Add dummy protocol implementation.

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
79. By Tiago Salem Herrmann

add missing png files

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

PASSED: Continuous integration, rev:79
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/2/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build/2333
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2332
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2154
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2154/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2154
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2154/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2154
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2154/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2154
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2154/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2154
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2154/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2154
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2154/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/2/rebuild

review: Approve (continuous-integration)
80. By Tiago Salem Herrmann

move share objects to a separate directory

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

PASSED: Continuous integration, rev:80
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/3/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build/2338
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2337
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2159
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2159/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2159
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2159/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2159
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2159/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2159
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2159/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2159
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2159/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2159
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2159/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/3/rebuild

review: Approve (continuous-integration)
81. By Gustavo Pichorim Boiko

Merge parent branch

Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Looks good!

review: Approve
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:81
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/4/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/2347/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2347
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2165
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2165/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2165
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/2165/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2165/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2165
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/2165/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2165
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/2165/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2165
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/2165/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/4/rebuild

review: Needs Fixing (continuous-integration)

Unmerged revisions

81. By Gustavo Pichorim Boiko

Merge parent branch

80. By Tiago Salem Herrmann

move share objects to a separate directory

79. By Tiago Salem Herrmann

add missing png files

78. By Tiago Salem Herrmann

Add dummy protocol implementation

77. By Tiago Salem Herrmann

merge parent branch

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2016-12-06 20:24:14 +0000
+++ CMakeLists.txt 2017-03-22 21:22:50 +0000
@@ -1,6 +1,7 @@
1cmake_minimum_required(VERSION 3.0.2)1cmake_minimum_required(VERSION 3.0.2)
2project(messaging-framework VERSION "0.1" LANGUAGES C CXX)2project(messaging-framework VERSION "0.1" LANGUAGES C CXX)
3set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)3set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
4set(IS_MF_BUILD "1")
45
5# Select a pedantic set of compiler flags and enable C++11 support.6# Select a pedantic set of compiler flags and enable C++11 support.
6set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-deprecated-register -Wno-extra-semi -Wno-gnu-zero-variadic-macro-arguments -fvisibility=hidden")7set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-deprecated-register -Wno-extra-semi -Wno-gnu-zero-variadic-macro-arguments -fvisibility=hidden")
@@ -97,4 +98,5 @@
97add_subdirectory(doc)98add_subdirectory(doc)
98add_subdirectory(include)99add_subdirectory(include)
99add_subdirectory(src)100add_subdirectory(src)
101add_subdirectory(examples)
100add_subdirectory(tests)102add_subdirectory(tests)
101103
=== modified file 'debian/control.in'
--- debian/control.in 2017-03-22 21:22:50 +0000
+++ debian/control.in 2017-03-22 21:22:50 +0000
@@ -46,3 +46,9 @@
46 This layer communicates third party plugins with systems like46 This layer communicates third party plugins with systems like
47 telepathy allowing changing the system by other without having47 telepathy allowing changing the system by other without having
48 to modify the plugins48 to modify the plugins
49
50Package: mfw-plugin-dummy
51Architecture: any
52Depends: ${misc:Depends}, ${shlibs:Depends}
53Description: Ubuntu Messaging Framework Dummy Plugin
54 A plugin for messaging fw implementing Dummy protocol
4955
=== added file 'debian/mfw-plugin-dummy.install'
--- debian/mfw-plugin-dummy.install 1970-01-01 00:00:00 +0000
+++ debian/mfw-plugin-dummy.install 2017-03-22 21:22:50 +0000
@@ -0,0 +1,6 @@
1usr/lib/*/messaging-framework/libmfw-plugin-dummy.so*
2usr/share/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.dummy.service
3usr/share/telephony-service/protocols/dummy.protocol
4usr/share/dummy/assets/dummy-background.png
5usr/share/dummy/assets/dummy.png
6usr/share/telepathy/managers/dummy.manager
07
=== added directory 'examples'
=== added file 'examples/CMakeLists.txt'
--- examples/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ examples/CMakeLists.txt 2017-03-22 21:22:50 +0000
@@ -0,0 +1,1 @@
1add_subdirectory(mfw-plugin-dummy)
02
=== added directory 'examples/mfw-plugin-dummy'
=== added file 'examples/mfw-plugin-dummy/CMakeLists.txt'
--- examples/mfw-plugin-dummy/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/CMakeLists.txt 2017-03-22 21:22:50 +0000
@@ -0,0 +1,61 @@
1if (NOT IS_MF_BUILD)
2 project(mfw-plugin-dummy C CXX)
3 cmake_minimum_required(VERSION 2.8.10)
4 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
5
6 # Select a pedantic set of compiler flags and enable C++11 support.
7 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-deprecated-register -Wno-extra-semi -Wno-gnu-zero-variadic-macro-arguments -fvisibility=hidden")
8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wextra -Wno-deprecated-register -Wno-extra-semi -Wno-gnu-zero-variadic-macro-arguments -ggdb -O0")
9 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
10 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
11
12 # Store in CMAKE_DEB_HOST_ARCH var the current build architecture
13 execute_process(COMMAND
14 dpkg-architecture
15 -qDEB_HOST_ARCH
16 OUTPUT_VARIABLE
17 CMAKE_DEB_HOST_ARCH
18 OUTPUT_STRIP_TRAILING_WHITESPACE
19 )
20
21 # Include the entire CTest functionality, specifically for MakeNightlyMemCheck.
22 include(CTest)
23 include(GNUInstallDirs)
24
25 find_package(Boost COMPONENTS filesystem program_options system REQUIRED)
26 find_package(GLog)
27 find_package(PkgConfig)
28 find_package(Qt5Core REQUIRED)
29 find_package(Qt5DBus REQUIRED)
30 find_package(Threads)
31 pkg_check_modules(PROCESS_CPP process-cpp REQUIRED)
32 pkg_check_modules(MESSAGING_FW REQUIRED messaging-framework1)
33endif()
34
35set(CMAKE_INCLUDE_CURRENT_DIR ON)
36
37set(SO_VERSION_MAJOR "1")
38set(SO_VERSION_MINOR "1")
39set(SO_VERSION_PATCH "0")
40set(SO_VERSION "${SO_VERSION_MAJOR}.${SO_VERSION_MINOR}.${SO_VERSION_PATCH}")
41
42option(CLICK_MODE "Installs to a contained location" on)
43option(ACCEPTANCE_MODE "Enables the acceptance tests" off)
44
45if (${ACCEPTANCE_MODE})
46 set(CTEST_CONFIGURATION_TYPE acceptance)
47endif()
48include_directories(
49 ${MESSAGING_FW_INCLUDE_DIRS}
50 ${CMAKE_CURRENT_SOURCE_DIR}/include
51 ${CMAKE_SOURCE_DIR}/include
52 ${Boost_INCLUDE_DIRS}
53 ${GLog_INCLUDE_DIR}
54 ${CPPNETLIB_INCLUDE_DIRS}
55)
56
57add_subdirectory(data)
58add_subdirectory(doc)
59add_subdirectory(include)
60add_subdirectory(src)
61
062
=== added directory 'examples/mfw-plugin-dummy/cmake'
=== added file 'examples/mfw-plugin-dummy/cmake/EnableCoverageReport.cmake'
--- examples/mfw-plugin-dummy/cmake/EnableCoverageReport.cmake 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/cmake/EnableCoverageReport.cmake 2017-03-22 21:22:50 +0000
@@ -0,0 +1,153 @@
1# - Creates a special coverage build type and target on GCC.
2#
3# Defines a function ENABLE_COVERAGE_REPORT which generates the coverage target
4# for selected targets. Optional arguments to this function are used to filter
5# unwanted results using globbing expressions. Moreover targets with tests for
6# the source code can be specified to trigger regenerating the report if the
7# test has changed
8#
9# ENABLE_COVERAGE_REPORT(TARGETS target... [FILTER filter...] [TESTS test targets...])
10#
11# To generate a coverage report first build the project with
12# CMAKE_BUILD_TYPE=coverage, then call make test and afterwards make coverage.
13#
14# The coverage report is based on gcov. Depending on the availability of lcov
15# a HTML report will be generated and/or an XML report of gcovr is found.
16# The generated coverage target executes all found solutions. Special targets
17# exist to create e.g. only the xml report: coverage-xml.
18#
19# Copyright (C) 2010 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de>
20#
21# This program is free software; you can redistribute it
22# and/or modify it under the terms of the GNU General
23# Public License as published by the Free Software Foundation;
24# either version 2, or (at your option)
25# any later version.
26#
27# This program is distributed in the hope that it will be useful,
28# but WITHOUT ANY WARRANTY; without even the implied warranty of
29# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30# GNU General Public License for more details.
31#
32
33INCLUDE(ParseArguments)
34
35FIND_PACKAGE(Lcov)
36FIND_PACKAGE(gcovr)
37
38FUNCTION(ENABLE_COVERAGE_REPORT)
39
40 # argument parsing
41 PARSE_ARGUMENTS(ARG "FILTER;TARGETS;TESTS" "" ${ARGN})
42
43 SET(COVERAGE_RAW_FILE "${CMAKE_BINARY_DIR}/coverage.raw.info")
44 SET(COVERAGE_FILTERED_FILE "${CMAKE_BINARY_DIR}/coverage.info")
45 SET(COVERAGE_REPORT_DIR "${CMAKE_BINARY_DIR}/coveragereport")
46 SET(COVERAGE_XML_FILE "${CMAKE_BINARY_DIR}/coverage.xml")
47 SET(COVERAGE_XML_COMMAND_FILE "${CMAKE_BINARY_DIR}/coverage-xml.cmake")
48
49 # decide if there is any tool to create coverage data
50 SET(TOOL_FOUND FALSE)
51 IF(LCOV_FOUND OR GCOVR_FOUND)
52 SET(TOOL_FOUND TRUE)
53 ENDIF()
54 IF(NOT TOOL_FOUND)
55 MESSAGE(STATUS "Cannot enable coverage targets because neither lcov nor gcovr are found.")
56 ENDIF()
57
58 STRING(TOLOWER "${CMAKE_BUILD_TYPE}" COVERAGE_BUILD_TYPE)
59 IF(CMAKE_COMPILER_IS_GNUCXX AND TOOL_FOUND AND "${COVERAGE_BUILD_TYPE}" MATCHES "coverage")
60
61 MESSAGE(STATUS "Coverage support enabled for targets: ${ARG_TARGETS}")
62
63 # create coverage build type
64 SET(CMAKE_CXX_FLAGS_COVERAGE ${CMAKE_CXX_FLAGS_DEBUG} PARENT_SCOPE)
65 SET(CMAKE_C_FLAGS_COVERAGE ${CMAKE_C_FLAGS_DEBUG} PARENT_SCOPE)
66 SET(CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES} coverage PARENT_SCOPE)
67
68 # instrument targets
69 SET_TARGET_PROPERTIES(${ARG_TARGETS} PROPERTIES COMPILE_FLAGS --coverage
70 LINK_FLAGS --coverage)
71
72 # html report
73 IF (LCOV_FOUND)
74
75 MESSAGE(STATUS "Enabling HTML coverage report")
76
77 # set up coverage target
78
79 ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_RAW_FILE}
80 COMMAND ${LCOV_EXECUTABLE} -c -d ${CMAKE_BINARY_DIR} -o ${COVERAGE_RAW_FILE}
81 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
82 COMMENT "Collecting coverage data"
83 DEPENDS ${ARG_TARGETS} ${ARG_TESTS}
84 VERBATIM)
85
86 # filter unwanted stuff
87 LIST(LENGTH ARG_FILTER FILTER_LENGTH)
88 IF(${FILTER_LENGTH} GREATER 0)
89 SET(FILTER COMMAND ${LCOV_EXECUTABLE})
90 FOREACH(F ${ARG_FILTER})
91 SET(FILTER ${FILTER} -r ${COVERAGE_FILTERED_FILE} ${F})
92 ENDFOREACH()
93 SET(FILTER ${FILTER} -o ${COVERAGE_FILTERED_FILE})
94 ELSE()
95 SET(FILTER "")
96 ENDIF()
97
98 ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_FILTERED_FILE}
99 COMMAND ${LCOV_EXECUTABLE} -e ${COVERAGE_RAW_FILE} "${CMAKE_SOURCE_DIR}*" -o ${COVERAGE_FILTERED_FILE}
100 ${FILTER}
101 DEPENDS ${COVERAGE_RAW_FILE}
102 COMMENT "Filtering recorded coverage data for project-relevant entries"
103 VERBATIM)
104 ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_REPORT_DIR}
105 COMMAND ${CMAKE_COMMAND} -E make_directory ${COVERAGE_REPORT_DIR}
106 COMMAND ${GENHTML_EXECUTABLE} --legend --show-details -t "${PROJECT_NAME} test coverage" -o ${COVERAGE_REPORT_DIR} ${COVERAGE_FILTERED_FILE}
107 DEPENDS ${COVERAGE_FILTERED_FILE}
108 COMMENT "Generating HTML coverage report in ${COVERAGE_REPORT_DIR}"
109 VERBATIM)
110
111 ADD_CUSTOM_TARGET(coverage-html
112 DEPENDS ${COVERAGE_REPORT_DIR})
113
114 ENDIF()
115
116 # xml coverage report
117 IF(GCOVR_FOUND)
118
119 MESSAGE(STATUS "Enabling XML coverage report")
120
121 # gcovr cannot write directly to a file so the execution needs to
122 # be wrapped in a cmake file that generates the file output
123 FILE(WRITE ${COVERAGE_XML_COMMAND_FILE}
124 "SET(ENV{LANG} en)\n")
125 FILE(APPEND ${COVERAGE_XML_COMMAND_FILE}
126 "EXECUTE_PROCESS(COMMAND \"${GCOVR_EXECUTABLE}\" --exclude=tests.* --exclude=obj-.* --exclude=cmake.* -x -r \"${CMAKE_SOURCE_DIR}\" OUTPUT_FILE \"${COVERAGE_XML_FILE}\" WORKING_DIRECTORY \"${CMAKE_BINARY_DIR}\")\n")
127
128 ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_XML_FILE}
129 COMMAND ${CMAKE_COMMAND} ARGS -P ${COVERAGE_XML_COMMAND_FILE}
130 COMMENT "Generating coverage XML report"
131 VERBATIM)
132
133 ADD_CUSTOM_TARGET(coverage-xml
134 DEPENDS ${COVERAGE_XML_FILE})
135
136 ENDIF()
137
138 # provide a global coverage target executing both steps if available
139 SET(GLOBAL_DEPENDS "")
140 IF(LCOV_FOUND)
141 LIST(APPEND GLOBAL_DEPENDS ${COVERAGE_REPORT_DIR})
142 ENDIF()
143 IF(GCOVR_FOUND)
144 LIST(APPEND GLOBAL_DEPENDS ${COVERAGE_XML_FILE})
145 ENDIF()
146 IF(LCOV_FOUND OR GCOVR_FOUND)
147 ADD_CUSTOM_TARGET(coverage
148 DEPENDS ${GLOBAL_DEPENDS})
149 ENDIF()
150
151 ENDIF()
152
153ENDFUNCTION()
0154
=== added file 'examples/mfw-plugin-dummy/cmake/FindGLog.cmake'
--- examples/mfw-plugin-dummy/cmake/FindGLog.cmake 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/cmake/FindGLog.cmake 2017-03-22 21:22:50 +0000
@@ -0,0 +1,14 @@
1if (GLog_INCLUDE_DIR)
2 # Already in cache, be silent
3 set(GLog_FIND_QUIETLY TRUE)
4endif ()
5
6find_path(GLog_INCLUDE_DIR glog/logging.h)
7
8find_library(GLog_LIBRARY libglog.so
9 HINTS /usr/lib/arm-linux-gnueabihf/)
10
11include(FindPackageHandleStandardArgs)
12find_package_handle_standard_args(GLog DEFAULT_MSG GLog_LIBRARY GLog_INCLUDE_DIR)
13
14mark_as_advanced(GLog_LIBRARY GLog_INCLUDE_DIR)
015
=== added file 'examples/mfw-plugin-dummy/cmake/FindLcov.cmake'
--- examples/mfw-plugin-dummy/cmake/FindLcov.cmake 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/cmake/FindLcov.cmake 2017-03-22 21:22:50 +0000
@@ -0,0 +1,29 @@
1# - Find lcov
2# Will define:
3#
4# LCOV_EXECUTABLE - the lcov binary
5# GENHTML_EXECUTABLE - the genhtml executable
6#
7# Copyright (C) 2010 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de>
8#
9# This program is free software; you can redistribute it
10# and/or modify it under the terms of the GNU General
11# Public License as published by the Free Software Foundation;
12# either version 2, or (at your option)
13# any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20
21INCLUDE(FindPackageHandleStandardArgs)
22
23FIND_PROGRAM(LCOV_EXECUTABLE lcov)
24FIND_PROGRAM(GENHTML_EXECUTABLE genhtml)
25
26FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lcov DEFAULT_MSG LCOV_EXECUTABLE GENHTML_EXECUTABLE)
27
28# only visible in advanced view
29MARK_AS_ADVANCED(LCOV_EXECUTABLE GENHTML_EXECUTABLE)
030
=== added file 'examples/mfw-plugin-dummy/cmake/Findgcovr.cmake'
--- examples/mfw-plugin-dummy/cmake/Findgcovr.cmake 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/cmake/Findgcovr.cmake 2017-03-22 21:22:50 +0000
@@ -0,0 +1,31 @@
1# - Find gcovr scrip
2# Will define:
3#
4# GCOVR_EXECUTABLE - the gcovr script
5#
6# Uses:
7#
8# GCOVR_ROOT - root to search for the script
9#
10# Copyright (C) 2011 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de>
11#
12# This program is free software; you can redistribute it
13# and/or modify it under the terms of the GNU General
14# Public License as published by the Free Software Foundation;
15# either version 2, or (at your option)
16# any later version.
17#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
22#
23
24INCLUDE(FindPackageHandleStandardArgs)
25
26FIND_PROGRAM(GCOVR_EXECUTABLE gcovr HINTS ${GCOVR_ROOT} "${GCOVR_ROOT}/bin")
27
28FIND_PACKAGE_HANDLE_STANDARD_ARGS(gcovr DEFAULT_MSG GCOVR_EXECUTABLE)
29
30# only visible in advanced view
31MARK_AS_ADVANCED(GCOVR_EXECUTABLE)
032
=== added file 'examples/mfw-plugin-dummy/cmake/LibFindMacros.cmake'
--- examples/mfw-plugin-dummy/cmake/LibFindMacros.cmake 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/cmake/LibFindMacros.cmake 2017-03-22 21:22:50 +0000
@@ -0,0 +1,112 @@
1# Version 1.0 (2013-04-12)
2# Public Domain, originally written by Lasse Kärkkäinen <tronic@zi.fi>
3# Published at http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
4
5# If you improve the script, please modify the forementioned wiki page because
6# I no longer maintain my scripts (hosted as static files at zi.fi). Feel free
7# to remove this entire header if you use real version control instead.
8
9# Changelog:
10# 2013-04-12 Added version number (1.0) and this header, no other changes
11# 2009-10-08 Originally published
12
13
14# Works the same as find_package, but forwards the "REQUIRED" and "QUIET" arguments
15# used for the current package. For this to work, the first parameter must be the
16# prefix of the current package, then the prefix of the new package etc, which are
17# passed to find_package.
18macro (libfind_package PREFIX)
19 set (LIBFIND_PACKAGE_ARGS ${ARGN})
20 if (${PREFIX}_FIND_QUIETLY)
21 set (LIBFIND_PACKAGE_ARGS ${LIBFIND_PACKAGE_ARGS} QUIET)
22 endif (${PREFIX}_FIND_QUIETLY)
23 if (${PREFIX}_FIND_REQUIRED)
24 set (LIBFIND_PACKAGE_ARGS ${LIBFIND_PACKAGE_ARGS} REQUIRED)
25 endif (${PREFIX}_FIND_REQUIRED)
26 find_package(${LIBFIND_PACKAGE_ARGS})
27endmacro (libfind_package)
28
29# CMake developers made the UsePkgConfig system deprecated in the same release (2.6)
30# where they added pkg_check_modules. Consequently I need to support both in my scripts
31# to avoid those deprecated warnings. Here's a helper that does just that.
32# Works identically to pkg_check_modules, except that no checks are needed prior to use.
33macro (libfind_pkg_check_modules PREFIX PKGNAME)
34 if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
35 include(UsePkgConfig)
36 pkgconfig(${PKGNAME} ${PREFIX}_INCLUDE_DIRS ${PREFIX}_LIBRARY_DIRS ${PREFIX}_LDFLAGS ${PREFIX}_CFLAGS)
37 else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
38 find_package(PkgConfig)
39 if (PKG_CONFIG_FOUND)
40 pkg_check_modules(${PREFIX} ${PKGNAME})
41 endif (PKG_CONFIG_FOUND)
42 endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
43endmacro (libfind_pkg_check_modules)
44
45# Do the final processing once the paths have been detected.
46# If include dirs are needed, ${PREFIX}_PROCESS_INCLUDES should be set to contain
47# all the variables, each of which contain one include directory.
48# Ditto for ${PREFIX}_PROCESS_LIBS and library files.
49# Will set ${PREFIX}_FOUND, ${PREFIX}_INCLUDE_DIRS and ${PREFIX}_LIBRARIES.
50# Also handles errors in case library detection was required, etc.
51macro (libfind_process PREFIX)
52 # Skip processing if already processed during this run
53 if (NOT ${PREFIX}_FOUND)
54 # Start with the assumption that the library was found
55 set (${PREFIX}_FOUND TRUE)
56
57 # Process all includes and set _FOUND to false if any are missing
58 foreach (i ${${PREFIX}_PROCESS_INCLUDES})
59 if (${i})
60 set (${PREFIX}_INCLUDE_DIRS ${${PREFIX}_INCLUDE_DIRS} ${${i}})
61 mark_as_advanced(${i})
62 else (${i})
63 set (${PREFIX}_FOUND FALSE)
64 endif (${i})
65 endforeach (i)
66
67 # Process all libraries and set _FOUND to false if any are missing
68 foreach (i ${${PREFIX}_PROCESS_LIBS})
69 if (${i})
70 set (${PREFIX}_LIBRARIES ${${PREFIX}_LIBRARIES} ${${i}})
71 mark_as_advanced(${i})
72 else (${i})
73 set (${PREFIX}_FOUND FALSE)
74 endif (${i})
75 endforeach (i)
76
77 # Print message and/or exit on fatal error
78 if (${PREFIX}_FOUND)
79 if (NOT ${PREFIX}_FIND_QUIETLY)
80 message (STATUS "Found ${PREFIX} ${${PREFIX}_VERSION}")
81 endif (NOT ${PREFIX}_FIND_QUIETLY)
82 else (${PREFIX}_FOUND)
83 if (${PREFIX}_FIND_REQUIRED)
84 foreach (i ${${PREFIX}_PROCESS_INCLUDES} ${${PREFIX}_PROCESS_LIBS})
85 message("${i}=${${i}}")
86 endforeach (i)
87 message (FATAL_ERROR "Required library ${PREFIX} NOT FOUND.\nInstall the library (dev version) and try again. If the library is already installed, use ccmake to set the missing variables manually.")
88 endif (${PREFIX}_FIND_REQUIRED)
89 endif (${PREFIX}_FOUND)
90 endif (NOT ${PREFIX}_FOUND)
91endmacro (libfind_process)
92
93macro(libfind_library PREFIX basename)
94 set(TMP "")
95 if(MSVC80)
96 set(TMP -vc80)
97 endif(MSVC80)
98 if(MSVC90)
99 set(TMP -vc90)
100 endif(MSVC90)
101 set(${PREFIX}_LIBNAMES ${basename}${TMP})
102 if(${ARGC} GREATER 2)
103 set(${PREFIX}_LIBNAMES ${basename}${TMP}-${ARGV2})
104 string(REGEX REPLACE "\\." "_" TMP ${${PREFIX}_LIBNAMES})
105 set(${PREFIX}_LIBNAMES ${${PREFIX}_LIBNAMES} ${TMP})
106 endif(${ARGC} GREATER 2)
107 find_library(${PREFIX}_LIBRARY
108 NAMES ${${PREFIX}_LIBNAMES}
109 PATHS ${${PREFIX}_PKGCONF_LIBRARY_DIRS}
110 )
111endmacro(libfind_library)
112
0113
=== added file 'examples/mfw-plugin-dummy/cmake/ParseArguments.cmake'
--- examples/mfw-plugin-dummy/cmake/ParseArguments.cmake 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/cmake/ParseArguments.cmake 2017-03-22 21:22:50 +0000
@@ -0,0 +1,52 @@
1# Parse arguments passed to a function into several lists separated by
2# upper-case identifiers and options that do not have an associated list e.g.:
3#
4# SET(arguments
5# hello OPTION3 world
6# LIST3 foo bar
7# OPTION2
8# LIST1 fuz baz
9# )
10# PARSE_ARGUMENTS(ARG "LIST1;LIST2;LIST3" "OPTION1;OPTION2;OPTION3" ${arguments})
11#
12# results in 7 distinct variables:
13# * ARG_DEFAULT_ARGS: hello;world
14# * ARG_LIST1: fuz;baz
15# * ARG_LIST2:
16# * ARG_LIST3: foo;bar
17# * ARG_OPTION1: FALSE
18# * ARG_OPTION2: TRUE
19# * ARG_OPTION3: TRUE
20#
21# taken from http://www.cmake.org/Wiki/CMakeMacroParseArguments
22
23MACRO(PARSE_ARGUMENTS prefix arg_names option_names)
24 SET(DEFAULT_ARGS)
25 FOREACH(arg_name ${arg_names})
26 SET(${prefix}_${arg_name})
27 ENDFOREACH(arg_name)
28 FOREACH(option ${option_names})
29 SET(${prefix}_${option} FALSE)
30 ENDFOREACH(option)
31
32 SET(current_arg_name DEFAULT_ARGS)
33 SET(current_arg_list)
34 FOREACH(arg ${ARGN})
35 SET(larg_names ${arg_names})
36 LIST(FIND larg_names "${arg}" is_arg_name)
37 IF (is_arg_name GREATER -1)
38 SET(${prefix}_${current_arg_name} ${current_arg_list})
39 SET(current_arg_name ${arg})
40 SET(current_arg_list)
41 ELSE (is_arg_name GREATER -1)
42 SET(loption_names ${option_names})
43 LIST(FIND loption_names "${arg}" is_option)
44 IF (is_option GREATER -1)
45 SET(${prefix}_${arg} TRUE)
46 ELSE (is_option GREATER -1)
47 SET(current_arg_list ${current_arg_list} ${arg})
48 ENDIF (is_option GREATER -1)
49 ENDIF (is_arg_name GREATER -1)
50 ENDFOREACH(arg)
51 SET(${prefix}_${current_arg_name} ${current_arg_list})
52ENDMACRO(PARSE_ARGUMENTS)
053
=== added directory 'examples/mfw-plugin-dummy/data'
=== added file 'examples/mfw-plugin-dummy/data/CMakeLists.txt'
--- examples/mfw-plugin-dummy/data/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/data/CMakeLists.txt 2017-03-22 21:22:50 +0000
@@ -0,0 +1,63 @@
1if (NOT IS_MF_BUILD)
2 # glob files to be shown in qt-creator
3 file(GLOB MANAGER_FILES *.manager)
4 file(GLOB SERVICE_FILES *.service)
5 file(GLOB PNG_FILES *.png)
6 add_custom_target(manager_files_plugin ALL SOURCES ${MANAGER_FILES})
7 add_custom_target(service_files_plugin ALL SOURCES ${SERVICE_FILES})
8 add_custom_target(png_files_plugin ALL SOURCES ${PNG_FILES})
9 add_custom_target(schema_files_plugin ALL SOURCES ${SCHEMA_FILES})
10 add_custom_target(info_files_plugin ALL SOURCES ${INFO_FILES})
11
12 # uninstall target
13 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
14 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
15 IMMEDIATE @ONLY)
16 add_custom_target(uninstall "${CMAKE_COMMAND}"
17 -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
18
19endif()
20
21###########################################
22# Messaging-fw data and configuration files
23###########################################
24
25# Compose the pkg-config file needed to find the library using that tool
26set(PREFIX "${CMAKE_INSTALL_PREFIX}") # /usr
27set(LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") # /usr/lib
28set(INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/include") # /usr/include
29
30#############################################
31# Dummy plugin data and configuration files
32#############################################
33
34set(CM dummy)
35set(PROTOCOL dummy)
36# DUMMY_DATADIR is used in dummy.protocol.in
37set(DUMMY_DATADIR ${CMAKE_INSTALL_DATADIR}/${CM})
38
39configure_file(
40 ${CM}.service.in
41 org.freedesktop.Telepathy.ConnectionManager.${CM}.service
42)
43configure_file(
44 ${PROTOCOL}.protocol.in
45 ${PROTOCOL}.protocol)
46
47configure_file(
48 ${CM}.manager.in
49 ${CM}.manager)
50
51install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Telepathy.ConnectionManager.${CM}.service
52 DESTINATION share/dbus-1/services)
53
54install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROTOCOL}.protocol
55 DESTINATION share/telephony-service/protocols)
56
57install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CM}.manager
58 DESTINATION share/telepathy/managers)
59
60# background and protocol icons to be displayed in the UI
61install(FILES dummy-background.png dummy.png
62 DESTINATION ${DUMMY_DATADIR}/assets)
63
064
=== added file 'examples/mfw-plugin-dummy/data/cmake_uninstall.cmake.in'
--- examples/mfw-plugin-dummy/data/cmake_uninstall.cmake.in 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/data/cmake_uninstall.cmake.in 2017-03-22 21:22:50 +0000
@@ -0,0 +1,22 @@
1IF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
2 MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"")
3ENDIF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
4
5FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
6STRING(REGEX REPLACE "\n" ";" files "${files}")
7FOREACH(file ${files})
8 MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
9 IF(EXISTS "$ENV{DESTDIR}${file}")
10 EXEC_PROGRAM(
11 "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
12 OUTPUT_VARIABLE rm_out
13 RETURN_VALUE rm_retval
14 )
15 IF(NOT "${rm_retval}" STREQUAL 0)
16 MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
17 ENDIF(NOT "${rm_retval}" STREQUAL 0)
18 ELSE(EXISTS "$ENV{DESTDIR}${file}")
19 MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
20 ENDIF(EXISTS "$ENV{DESTDIR}${file}")
21ENDFOREACH(file)
22
023
=== added file 'examples/mfw-plugin-dummy/data/dummy-background.png'
1Binary files examples/mfw-plugin-dummy/data/dummy-background.png 1970-01-01 00:00:00 +0000 and examples/mfw-plugin-dummy/data/dummy-background.png 2017-03-22 21:22:50 +0000 differ24Binary files examples/mfw-plugin-dummy/data/dummy-background.png 1970-01-01 00:00:00 +0000 and examples/mfw-plugin-dummy/data/dummy-background.png 2017-03-22 21:22:50 +0000 differ
=== added file 'examples/mfw-plugin-dummy/data/dummy.manager.in'
--- examples/mfw-plugin-dummy/data/dummy.manager.in 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/data/dummy.manager.in 2017-03-22 21:22:50 +0000
@@ -0,0 +1,10 @@
1[ConnectionManager]
2Name = @CM@
3BusName = org.freedesktop.Telepathy.ConnectionManager.@CM@
4ObjectPath = /org/freedesktop/Telepathy/ConnectionManager/@CM@
5
6[Protocol @PROTOCOL@]
7param-account=s required register
8param-password=s secret
9Interfaces=org.freedesktop.Telepathy.Protocol.Interface.Addressing;
10ConnectionInterfaces=org.freedesktop.Telepathy.Connection.Interface.Requests;org.freedesktop.Telepathy.Connection.Interface.Contacts;org.freedesktop.Telepathy.Connection.Interface.SimplePresence;
011
=== added file 'examples/mfw-plugin-dummy/data/dummy.png'
1Binary files examples/mfw-plugin-dummy/data/dummy.png 1970-01-01 00:00:00 +0000 and examples/mfw-plugin-dummy/data/dummy.png 2017-03-22 21:22:50 +0000 differ12Binary files examples/mfw-plugin-dummy/data/dummy.png 1970-01-01 00:00:00 +0000 and examples/mfw-plugin-dummy/data/dummy.png 2017-03-22 21:22:50 +0000 differ
=== added file 'examples/mfw-plugin-dummy/data/dummy.protocol.in'
--- examples/mfw-plugin-dummy/data/dummy.protocol.in 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/data/dummy.protocol.in 2017-03-22 21:22:50 +0000
@@ -0,0 +1,16 @@
1[Protocol]
2Name=@PROTOCOL@
3Features=text
4FallbackProtocol=
5BackgroundImage=@CMAKE_INSTALL_PREFIX@/@DUMMY_DATADIR@/assets/dummy-background.png
6Icon=@CMAKE_INSTALL_PREFIX@/@DUMMY_DATADIR@/assets/dummy.png
7ServiceName=Dummy
8ServiceDisplayName=Dummy
9ShowOnSelector=1
10ShowOnlineStatus=0
11JoinExistingChannels=1
12ReturnToSend=1
13EnableAttachments=0
14EnableRejoin=1
15EnableTabCompletion=1
16LeaveRoomsOnClose=1
017
=== added file 'examples/mfw-plugin-dummy/data/dummy.service.in'
--- examples/mfw-plugin-dummy/data/dummy.service.in 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/data/dummy.service.in 2017-03-22 21:22:50 +0000
@@ -0,0 +1,3 @@
1[D-BUS Service]
2Name=org.freedesktop.Telepathy.ConnectionManager.@CM@
3Exec=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/messaging-framework-runner --connection-manager-name @CM@ --protocol-name @PROTOCOL@ --connector messaging::PluginConnector --PluginConnector::path=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/messaging-framework/libmfw-plugin-@CM@.so
04
=== added directory 'examples/mfw-plugin-dummy/debian'
=== added file 'examples/mfw-plugin-dummy/debian/changelog'
--- examples/mfw-plugin-dummy/debian/changelog 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/debian/changelog 2017-03-22 21:22:50 +0000
@@ -0,0 +1,5 @@
1mfw-plugin-dummy (0.1) xenial; urgency=medium
2
3 * Initial release
4
5 -- Developer Of Dummy Protocol <developer@dummyprotocol.com> Mon, 05 Dec 2016 10:50:40 -0200
06
=== added file 'examples/mfw-plugin-dummy/debian/compat'
--- examples/mfw-plugin-dummy/debian/compat 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/debian/compat 2017-03-22 21:22:50 +0000
@@ -0,0 +1,1 @@
19
02
=== added file 'examples/mfw-plugin-dummy/debian/control'
--- examples/mfw-plugin-dummy/debian/control 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/debian/control 2017-03-22 21:22:50 +0000
@@ -0,0 +1,31 @@
1Source: mfw-plugin-dummy
2Priority: optional
3Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
4Build-Depends: cmake,
5 debhelper (>= 9),
6 doxygen,
7 gcovr,
8 google-mock,
9 lcov,
10 libboost-dev,
11 libboost-filesystem-dev,
12 libboost-program-options-dev,
13 libboost-system-dev,
14 libdbus-cpp-dev,
15 libgoogle-glog-dev,
16 libmessaging-framework-dev,
17 libprocess-cpp-dev,
18 libtelepathy-qt5-dev,
19 pkg-config,
20 qtbase5-dev,
21 libcppnetlib-dev,
22Standards-Version: 3.9.5
23Section: libs
24Homepage: https://launchpad.net/mfw-plugin-dummy
25Vcs-Bzr: https://code.launchpad.net/
26
27Package: mfw-plugin-dummy
28Architecture: any
29Depends: ${misc:Depends}, ${shlibs:Depends}
30Description: Ubuntu Messaging Framework Dummy Plugin
31 A plugin for messaging fw implementing Dummy protocol
032
=== added file 'examples/mfw-plugin-dummy/debian/copyright'
--- examples/mfw-plugin-dummy/debian/copyright 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/debian/copyright 2017-03-22 21:22:50 +0000
@@ -0,0 +1,22 @@
1Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2Upstream-Name: mfw-plugin-dummy
3Source: https://launchpad.net/mfw-plugin-dummy
4
5Files: *
6Copyright: 2016 Canonical Ltd.
7License: LGPL-3.0
8 This package is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation, version 3 of
11 the License.
12 .
13 This package is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17 .
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 .
21 On Debian systems, the complete text of the GNU Lesser General
22 Public License can be found in /usr/share/common-licenses/LGPL-3.
023
=== added file 'examples/mfw-plugin-dummy/debian/rules'
--- examples/mfw-plugin-dummy/debian/rules 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/debian/rules 2017-03-22 21:22:50 +0000
@@ -0,0 +1,19 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3
4export DPKG_GENSYMBOLS_CHECK_LEVEL=4
5
6include /usr/share/dpkg/default.mk
7
8BUILDHOME=$(CURDIR)/debian/build
9
10%:
11 dh $@ --fail-missing
12
13override_dh_clean:
14 dh_clean
15 rm -rf $(BUILDHOME)
16
17override_dh_auto_test:
18 mkdir -p $(BUILDHOME)
19 HOME=$(BUILDHOME) dh_auto_test
020
=== added directory 'examples/mfw-plugin-dummy/debian/source'
=== added file 'examples/mfw-plugin-dummy/debian/source/format'
--- examples/mfw-plugin-dummy/debian/source/format 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/debian/source/format 2017-03-22 21:22:50 +0000
@@ -0,0 +1,1 @@
13.0 (native)
02
=== added directory 'examples/mfw-plugin-dummy/doc'
=== added file 'examples/mfw-plugin-dummy/doc/CMakeLists.txt'
--- examples/mfw-plugin-dummy/doc/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/doc/CMakeLists.txt 2017-03-22 21:22:50 +0000
@@ -0,0 +1,21 @@
1option(
2 ENABLE_DOC_GENERATION
3 "Generate package documentation with doxygen"
4 OFF
5)
6
7if (ENABLE_DOC_GENERATION)
8
9find_package(Doxygen)
10
11if (DOXYGEN_FOUND)
12 configure_file(
13 ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
14 ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
15 add_custom_target(doc ALL
16 ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
17 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
18 COMMENT "Generating API documentation with Doxygen" VERBATIM)
19
20endif (DOXYGEN_FOUND)
21endif (ENABLE_DOC_GENERATION)
022
=== added file 'examples/mfw-plugin-dummy/doc/Doxyfile.in'
--- examples/mfw-plugin-dummy/doc/Doxyfile.in 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/doc/Doxyfile.in 2017-03-22 21:22:50 +0000
@@ -0,0 +1,1869 @@
1# Doxyfile 1.8.3.1
2
3# This file describes the settings to be used by the documentation system
4# doxygen (www.doxygen.org) for a project.
5#
6# All text after a hash (#) is considered a comment and will be ignored.
7# The format is:
8# TAG = value [value, ...]
9# For lists items can also be appended using:
10# TAG += value [value, ...]
11# Values that contain spaces should be placed between quotes (" ").
12
13#---------------------------------------------------------------------------
14# Project related configuration options
15#---------------------------------------------------------------------------
16
17# This tag specifies the encoding used for all characters in the config file
18# that follow. The default is UTF-8 which is also the encoding used for all
19# text before the first occurrence of this tag. Doxygen uses libiconv (or the
20# iconv built into libc) for the transcoding. See
21# http://www.gnu.org/software/libiconv for the list of possible encodings.
22
23DOXYFILE_ENCODING = UTF-8
24
25# The PROJECT_NAME tag is a single word (or sequence of words) that should
26# identify the project. Note that if you do not use Doxywizard you need
27# to put quotes around the project name if it contains spaces.
28
29PROJECT_NAME = @CMAKE_PROJECT_NAME@
30
31# The PROJECT_NUMBER tag can be used to enter a project or revision number.
32# This could be handy for archiving the generated documentation or
33# if some version control system is used.
34
35PROJECT_NUMBER = @SO_VERSION_MAJOR@.@SO_VERSION_MINOR@.@SO_VERSION_PATCH@
36
37# Using the PROJECT_BRIEF tag one can provide an optional one line description
38# for a project that appears at the top of each page and should give viewer
39# a quick idea about the purpose of the project. Keep the description short.
40
41PROJECT_BRIEF = "Messaging framework backend enabling Dummy Protocol on Ubuntu phones"
42
43# With the PROJECT_LOGO tag one can specify an logo or icon that is
44# included in the documentation. The maximum height of the logo should not
45# exceed 55 pixels and the maximum width should not exceed 200 pixels.
46# Doxygen will copy the logo to the output directory.
47
48PROJECT_LOGO =
49
50# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
51# base path where the generated documentation will be put.
52# If a relative path is entered, it will be relative to the location
53# where doxygen was started. If left blank the current directory will be used.
54
55OUTPUT_DIRECTORY =
56
57# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
58# 4096 sub-directories (in 2 levels) under the output directory of each output
59# format and will distribute the generated files over these directories.
60# Enabling this option can be useful when feeding doxygen a huge amount of
61# source files, where putting all generated files in the same directory would
62# otherwise cause performance problems for the file system.
63
64CREATE_SUBDIRS = NO
65
66# The OUTPUT_LANGUAGE tag is used to specify the language in which all
67# documentation generated by doxygen is written. Doxygen will use this
68# information to generate all constant output in the proper language.
69# The default language is English, other supported languages are:
70# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
71# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
72# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
73# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
74# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak,
75# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
76
77OUTPUT_LANGUAGE = English
78
79# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
80# include brief member descriptions after the members that are listed in
81# the file and class documentation (similar to JavaDoc).
82# Set to NO to disable this.
83
84BRIEF_MEMBER_DESC = YES
85
86# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
87# the brief description of a member or function before the detailed description.
88# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
89# brief descriptions will be completely suppressed.
90
91REPEAT_BRIEF = YES
92
93# This tag implements a quasi-intelligent brief description abbreviator
94# that is used to form the text in various listings. Each string
95# in this list, if found as the leading text of the brief description, will be
96# stripped from the text and the result after processing the whole list, is
97# used as the annotated text. Otherwise, the brief description is used as-is.
98# If left blank, the following values are used ("$name" is automatically
99# replaced with the name of the entity): "The $name class" "The $name widget"
100# "The $name file" "is" "provides" "specifies" "contains"
101# "represents" "a" "an" "the"
102
103ABBREVIATE_BRIEF =
104
105# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
106# Doxygen will generate a detailed section even if there is only a brief
107# description.
108
109ALWAYS_DETAILED_SEC = NO
110
111# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
112# inherited members of a class in the documentation of that class as if those
113# members were ordinary class members. Constructors, destructors and assignment
114# operators of the base classes will not be shown.
115
116INLINE_INHERITED_MEMB = NO
117
118# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
119# path before files name in the file list and in the header files. If set
120# to NO the shortest path that makes the file name unique will be used.
121
122FULL_PATH_NAMES = YES
123
124# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
125# can be used to strip a user-defined part of the path. Stripping is
126# only done if one of the specified strings matches the left-hand part of
127# the path. The tag can be used to show relative paths in the file list.
128# If left blank the directory from which doxygen is run is used as the
129# path to strip. Note that you specify absolute paths here, but also
130# relative paths, which will be relative from the directory where doxygen is
131# started.
132
133STRIP_FROM_PATH =
134
135# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
136# the path mentioned in the documentation of a class, which tells
137# the reader which header file to include in order to use a class.
138# If left blank only the name of the header file containing the class
139# definition is used. Otherwise one should specify the include paths that
140# are normally passed to the compiler using the -I flag.
141
142STRIP_FROM_INC_PATH =
143
144# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
145# (but less readable) file names. This can be useful if your file system
146# doesn't support long names like on DOS, Mac, or CD-ROM.
147
148SHORT_NAMES = NO
149
150# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
151# will interpret the first line (until the first dot) of a JavaDoc-style
152# comment as the brief description. If set to NO, the JavaDoc
153# comments will behave just like regular Qt-style comments
154# (thus requiring an explicit @brief command for a brief description.)
155
156JAVADOC_AUTOBRIEF = NO
157
158# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
159# interpret the first line (until the first dot) of a Qt-style
160# comment as the brief description. If set to NO, the comments
161# will behave just like regular Qt-style comments (thus requiring
162# an explicit \brief command for a brief description.)
163
164QT_AUTOBRIEF = NO
165
166# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
167# treat a multi-line C++ special comment block (i.e. a block of //! or ///
168# comments) as a brief description. This used to be the default behaviour.
169# The new default is to treat a multi-line C++ comment block as a detailed
170# description. Set this tag to YES if you prefer the old behaviour instead.
171
172MULTILINE_CPP_IS_BRIEF = NO
173
174# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
175# member inherits the documentation from any documented member that it
176# re-implements.
177
178INHERIT_DOCS = YES
179
180# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
181# a new page for each member. If set to NO, the documentation of a member will
182# be part of the file/class/namespace that contains it.
183
184SEPARATE_MEMBER_PAGES = NO
185
186# The TAB_SIZE tag can be used to set the number of spaces in a tab.
187# Doxygen uses this value to replace tabs by spaces in code fragments.
188
189TAB_SIZE = 4
190
191# This tag can be used to specify a number of aliases that acts
192# as commands in the documentation. An alias has the form "name=value".
193# For example adding "sideeffect=\par Side Effects:\n" will allow you to
194# put the command \sideeffect (or @sideeffect) in the documentation, which
195# will result in a user-defined paragraph with heading "Side Effects:".
196# You can put \n's in the value part of an alias to insert newlines.
197
198ALIASES =
199
200# This tag can be used to specify a number of word-keyword mappings (TCL only).
201# A mapping has the form "name=value". For example adding
202# "class=itcl::class" will allow you to use the command class in the
203# itcl::class meaning.
204
205TCL_SUBST =
206
207# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
208# sources only. Doxygen will then generate output that is more tailored for C.
209# For instance, some of the names that are used will be different. The list
210# of all members will be omitted, etc.
211
212OPTIMIZE_OUTPUT_FOR_C = NO
213
214# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
215# sources only. Doxygen will then generate output that is more tailored for
216# Java. For instance, namespaces will be presented as packages, qualified
217# scopes will look different, etc.
218
219OPTIMIZE_OUTPUT_JAVA = NO
220
221# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
222# sources only. Doxygen will then generate output that is more tailored for
223# Fortran.
224
225OPTIMIZE_FOR_FORTRAN = NO
226
227# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
228# sources. Doxygen will then generate output that is tailored for
229# VHDL.
230
231OPTIMIZE_OUTPUT_VHDL = NO
232
233# Doxygen selects the parser to use depending on the extension of the files it
234# parses. With this tag you can assign which parser to use for a given
235# extension. Doxygen has a built-in mapping, but you can override or extend it
236# using this tag. The format is ext=language, where ext is a file extension,
237# and language is one of the parsers supported by doxygen: IDL, Java,
238# Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C,
239# C++. For instance to make doxygen treat .inc files as Fortran files (default
240# is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note
241# that for custom extensions you also need to set FILE_PATTERNS otherwise the
242# files are not read by doxygen.
243
244EXTENSION_MAPPING =
245
246# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all
247# comments according to the Markdown format, which allows for more readable
248# documentation. See http://daringfireball.net/projects/markdown/ for details.
249# The output of markdown processing is further processed by doxygen, so you
250# can mix doxygen, HTML, and XML commands with Markdown formatting.
251# Disable only in case of backward compatibilities issues.
252
253MARKDOWN_SUPPORT = YES
254
255# When enabled doxygen tries to link words that correspond to documented classes,
256# or namespaces to their corresponding documentation. Such a link can be
257# prevented in individual cases by by putting a % sign in front of the word or
258# globally by setting AUTOLINK_SUPPORT to NO.
259
260AUTOLINK_SUPPORT = YES
261
262# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
263# to include (a tag file for) the STL sources as input, then you should
264# set this tag to YES in order to let doxygen match functions declarations and
265# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
266# func(std::string) {}). This also makes the inheritance and collaboration
267# diagrams that involve STL classes more complete and accurate.
268
269BUILTIN_STL_SUPPORT = YES
270
271# If you use Microsoft's C++/CLI language, you should set this option to YES to
272# enable parsing support.
273
274CPP_CLI_SUPPORT = NO
275
276# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
277# Doxygen will parse them like normal C++ but will assume all classes use public
278# instead of private inheritance when no explicit protection keyword is present.
279
280SIP_SUPPORT = NO
281
282# For Microsoft's IDL there are propget and propput attributes to indicate
283# getter and setter methods for a property. Setting this option to YES (the
284# default) will make doxygen replace the get and set methods by a property in
285# the documentation. This will only work if the methods are indeed getting or
286# setting a simple type. If this is not the case, or you want to show the
287# methods anyway, you should set this option to NO.
288
289IDL_PROPERTY_SUPPORT = YES
290
291# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
292# tag is set to YES, then doxygen will reuse the documentation of the first
293# member in the group (if any) for the other members of the group. By default
294# all members of a group must be documented explicitly.
295
296DISTRIBUTE_GROUP_DOC = NO
297
298# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
299# the same type (for instance a group of public functions) to be put as a
300# subgroup of that type (e.g. under the Public Functions section). Set it to
301# NO to prevent subgrouping. Alternatively, this can be done per class using
302# the \nosubgrouping command.
303
304SUBGROUPING = YES
305
306# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and
307# unions are shown inside the group in which they are included (e.g. using
308# @ingroup) instead of on a separate page (for HTML and Man pages) or
309# section (for LaTeX and RTF).
310
311INLINE_GROUPED_CLASSES = NO
312
313# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and
314# unions with only public data fields will be shown inline in the documentation
315# of the scope in which they are defined (i.e. file, namespace, or group
316# documentation), provided this scope is documented. If set to NO (the default),
317# structs, classes, and unions are shown on a separate page (for HTML and Man
318# pages) or section (for LaTeX and RTF).
319
320INLINE_SIMPLE_STRUCTS = NO
321
322# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
323# is documented as struct, union, or enum with the name of the typedef. So
324# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
325# with name TypeT. When disabled the typedef will appear as a member of a file,
326# namespace, or class. And the struct will be named TypeS. This can typically
327# be useful for C code in case the coding convention dictates that all compound
328# types are typedef'ed and only the typedef is referenced, never the tag name.
329
330TYPEDEF_HIDES_STRUCT = NO
331
332# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
333# determine which symbols to keep in memory and which to flush to disk.
334# When the cache is full, less often used symbols will be written to disk.
335# For small to medium size projects (<1000 input files) the default value is
336# probably good enough. For larger projects a too small cache size can cause
337# doxygen to be busy swapping symbols to and from disk most of the time
338# causing a significant performance penalty.
339# If the system has enough physical memory increasing the cache will improve the
340# performance by keeping more symbols in memory. Note that the value works on
341# a logarithmic scale so increasing the size by one will roughly double the
342# memory usage. The cache size is given by this formula:
343# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
344# corresponding to a cache size of 2^16 = 65536 symbols.
345
346SYMBOL_CACHE_SIZE = 0
347
348# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be
349# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given
350# their name and scope. Since this can be an expensive process and often the
351# same symbol appear multiple times in the code, doxygen keeps a cache of
352# pre-resolved symbols. If the cache is too small doxygen will become slower.
353# If the cache is too large, memory is wasted. The cache size is given by this
354# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0,
355# corresponding to a cache size of 2^16 = 65536 symbols.
356
357LOOKUP_CACHE_SIZE = 0
358
359#---------------------------------------------------------------------------
360# Build related configuration options
361#---------------------------------------------------------------------------
362
363# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
364# documentation are documented, even if no documentation was available.
365# Private class members and static file members will be hidden unless
366# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
367
368EXTRACT_ALL = YES
369
370# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
371# will be included in the documentation.
372
373EXTRACT_PRIVATE = NO
374
375# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
376# scope will be included in the documentation.
377
378EXTRACT_PACKAGE = NO
379
380# If the EXTRACT_STATIC tag is set to YES all static members of a file
381# will be included in the documentation.
382
383EXTRACT_STATIC = NO
384
385# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
386# defined locally in source files will be included in the documentation.
387# If set to NO only classes defined in header files are included.
388
389EXTRACT_LOCAL_CLASSES = YES
390
391# This flag is only useful for Objective-C code. When set to YES local
392# methods, which are defined in the implementation section but not in
393# the interface are included in the documentation.
394# If set to NO (the default) only methods in the interface are included.
395
396EXTRACT_LOCAL_METHODS = NO
397
398# If this flag is set to YES, the members of anonymous namespaces will be
399# extracted and appear in the documentation as a namespace called
400# 'anonymous_namespace{file}', where file will be replaced with the base
401# name of the file that contains the anonymous namespace. By default
402# anonymous namespaces are hidden.
403
404EXTRACT_ANON_NSPACES = NO
405
406# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
407# undocumented members of documented classes, files or namespaces.
408# If set to NO (the default) these members will be included in the
409# various overviews, but no documentation section is generated.
410# This option has no effect if EXTRACT_ALL is enabled.
411
412HIDE_UNDOC_MEMBERS = NO
413
414# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
415# undocumented classes that are normally visible in the class hierarchy.
416# If set to NO (the default) these classes will be included in the various
417# overviews. This option has no effect if EXTRACT_ALL is enabled.
418
419HIDE_UNDOC_CLASSES = NO
420
421# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
422# friend (class|struct|union) declarations.
423# If set to NO (the default) these declarations will be included in the
424# documentation.
425
426HIDE_FRIEND_COMPOUNDS = NO
427
428# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
429# documentation blocks found inside the body of a function.
430# If set to NO (the default) these blocks will be appended to the
431# function's detailed documentation block.
432
433HIDE_IN_BODY_DOCS = NO
434
435# The INTERNAL_DOCS tag determines if documentation
436# that is typed after a \internal command is included. If the tag is set
437# to NO (the default) then the documentation will be excluded.
438# Set it to YES to include the internal documentation.
439
440INTERNAL_DOCS = NO
441
442# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
443# file names in lower-case letters. If set to YES upper-case letters are also
444# allowed. This is useful if you have classes or files whose names only differ
445# in case and if your file system supports case sensitive file names. Windows
446# and Mac users are advised to set this option to NO.
447
448CASE_SENSE_NAMES = YES
449
450# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
451# will show members with their full class and namespace scopes in the
452# documentation. If set to YES the scope will be hidden.
453
454HIDE_SCOPE_NAMES = NO
455
456# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
457# will put a list of the files that are included by a file in the documentation
458# of that file.
459
460SHOW_INCLUDE_FILES = YES
461
462# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
463# will list include files with double quotes in the documentation
464# rather than with sharp brackets.
465
466FORCE_LOCAL_INCLUDES = NO
467
468# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
469# is inserted in the documentation for inline members.
470
471INLINE_INFO = YES
472
473# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
474# will sort the (detailed) documentation of file and class members
475# alphabetically by member name. If set to NO the members will appear in
476# declaration order.
477
478SORT_MEMBER_DOCS = YES
479
480# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
481# brief documentation of file, namespace and class members alphabetically
482# by member name. If set to NO (the default) the members will appear in
483# declaration order.
484
485SORT_BRIEF_DOCS = NO
486
487# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
488# will sort the (brief and detailed) documentation of class members so that
489# constructors and destructors are listed first. If set to NO (the default)
490# the constructors will appear in the respective orders defined by
491# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
492# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
493# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
494
495SORT_MEMBERS_CTORS_1ST = NO
496
497# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
498# hierarchy of group names into alphabetical order. If set to NO (the default)
499# the group names will appear in their defined order.
500
501SORT_GROUP_NAMES = NO
502
503# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
504# sorted by fully-qualified names, including namespaces. If set to
505# NO (the default), the class list will be sorted only by class name,
506# not including the namespace part.
507# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
508# Note: This option applies only to the class list, not to the
509# alphabetical list.
510
511SORT_BY_SCOPE_NAME = NO
512
513# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to
514# do proper type resolution of all parameters of a function it will reject a
515# match between the prototype and the implementation of a member function even
516# if there is only one candidate or it is obvious which candidate to choose
517# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen
518# will still accept a match between prototype and implementation in such cases.
519
520STRICT_PROTO_MATCHING = NO
521
522# The GENERATE_TODOLIST tag can be used to enable (YES) or
523# disable (NO) the todo list. This list is created by putting \todo
524# commands in the documentation.
525
526GENERATE_TODOLIST = YES
527
528# The GENERATE_TESTLIST tag can be used to enable (YES) or
529# disable (NO) the test list. This list is created by putting \test
530# commands in the documentation.
531
532GENERATE_TESTLIST = YES
533
534# The GENERATE_BUGLIST tag can be used to enable (YES) or
535# disable (NO) the bug list. This list is created by putting \bug
536# commands in the documentation.
537
538GENERATE_BUGLIST = YES
539
540# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
541# disable (NO) the deprecated list. This list is created by putting
542# \deprecated commands in the documentation.
543
544GENERATE_DEPRECATEDLIST= YES
545
546# The ENABLED_SECTIONS tag can be used to enable conditional
547# documentation sections, marked by \if section-label ... \endif
548# and \cond section-label ... \endcond blocks.
549
550ENABLED_SECTIONS =
551
552# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
553# the initial value of a variable or macro consists of for it to appear in
554# the documentation. If the initializer consists of more lines than specified
555# here it will be hidden. Use a value of 0 to hide initializers completely.
556# The appearance of the initializer of individual variables and macros in the
557# documentation can be controlled using \showinitializer or \hideinitializer
558# command in the documentation regardless of this setting.
559
560MAX_INITIALIZER_LINES = 30
561
562# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
563# at the bottom of the documentation of classes and structs. If set to YES the
564# list will mention the files that were used to generate the documentation.
565
566SHOW_USED_FILES = YES
567
568# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
569# This will remove the Files entry from the Quick Index and from the
570# Folder Tree View (if specified). The default is YES.
571
572SHOW_FILES = YES
573
574# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
575# Namespaces page.
576# This will remove the Namespaces entry from the Quick Index
577# and from the Folder Tree View (if specified). The default is YES.
578
579SHOW_NAMESPACES = YES
580
581# The FILE_VERSION_FILTER tag can be used to specify a program or script that
582# doxygen should invoke to get the current version for each file (typically from
583# the version control system). Doxygen will invoke the program by executing (via
584# popen()) the command <command> <input-file>, where <command> is the value of
585# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
586# provided by doxygen. Whatever the program writes to standard output
587# is used as the file version. See the manual for examples.
588
589FILE_VERSION_FILTER =
590
591# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
592# by doxygen. The layout file controls the global structure of the generated
593# output files in an output format independent way. To create the layout file
594# that represents doxygen's defaults, run doxygen with the -l option.
595# You can optionally specify a file name after the option, if omitted
596# DoxygenLayout.xml will be used as the name of the layout file.
597
598LAYOUT_FILE =
599
600# The CITE_BIB_FILES tag can be used to specify one or more bib files
601# containing the references data. This must be a list of .bib files. The
602# .bib extension is automatically appended if omitted. Using this command
603# requires the bibtex tool to be installed. See also
604# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style
605# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this
606# feature you need bibtex and perl available in the search path. Do not use
607# file names with spaces, bibtex cannot handle them.
608
609CITE_BIB_FILES =
610
611#---------------------------------------------------------------------------
612# configuration options related to warning and progress messages
613#---------------------------------------------------------------------------
614
615# The QUIET tag can be used to turn on/off the messages that are generated
616# by doxygen. Possible values are YES and NO. If left blank NO is used.
617
618QUIET = NO
619
620# The WARNINGS tag can be used to turn on/off the warning messages that are
621# generated by doxygen. Possible values are YES and NO. If left blank
622# NO is used.
623
624WARNINGS = YES
625
626# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
627# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
628# automatically be disabled.
629
630WARN_IF_UNDOCUMENTED = YES
631
632# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
633# potential errors in the documentation, such as not documenting some
634# parameters in a documented function, or documenting parameters that
635# don't exist or using markup commands wrongly.
636
637WARN_IF_DOC_ERROR = YES
638
639# The WARN_NO_PARAMDOC option can be enabled to get warnings for
640# functions that are documented, but have no documentation for their parameters
641# or return value. If set to NO (the default) doxygen will only warn about
642# wrong or incomplete parameter documentation, but not about the absence of
643# documentation.
644
645WARN_NO_PARAMDOC = NO
646
647# The WARN_FORMAT tag determines the format of the warning messages that
648# doxygen can produce. The string should contain the $file, $line, and $text
649# tags, which will be replaced by the file and line number from which the
650# warning originated and the warning text. Optionally the format may contain
651# $version, which will be replaced by the version of the file (if it could
652# be obtained via FILE_VERSION_FILTER)
653
654WARN_FORMAT = "$file:$line: $text"
655
656# The WARN_LOGFILE tag can be used to specify a file to which warning
657# and error messages should be written. If left blank the output is written
658# to stderr.
659
660WARN_LOGFILE =
661
662#---------------------------------------------------------------------------
663# configuration options related to the input files
664#---------------------------------------------------------------------------
665
666# The INPUT tag can be used to specify the files and/or directories that contain
667# documented source files. You may enter file names like "myfile.cpp" or
668# directories like "/usr/src/myproject". Separate the files or directories
669# with spaces.
670
671INPUT = @CMAKE_SOURCE_DIR@/include @CMAKE_SOURCE_DIR@/doc
672
673# This tag can be used to specify the character encoding of the source files
674# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
675# also the default input encoding. Doxygen uses libiconv (or the iconv built
676# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
677# the list of possible encodings.
678
679INPUT_ENCODING = UTF-8
680
681# If the value of the INPUT tag contains directories, you can use the
682# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
683# and *.h) to filter out the source-files in the directories. If left
684# blank the following patterns are tested:
685# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh
686# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
687# *.f90 *.f *.for *.vhd *.vhdl
688
689FILE_PATTERNS =
690
691# The RECURSIVE tag can be used to turn specify whether or not subdirectories
692# should be searched for input files as well. Possible values are YES and NO.
693# If left blank NO is used.
694
695RECURSIVE = YES
696
697# The EXCLUDE tag can be used to specify files and/or directories that should be
698# excluded from the INPUT source files. This way you can easily exclude a
699# subdirectory from a directory tree whose root is specified with the INPUT tag.
700# Note that relative paths are relative to the directory from which doxygen is
701# run.
702
703EXCLUDE =
704
705# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
706# directories that are symbolic links (a Unix file system feature) are excluded
707# from the input.
708
709EXCLUDE_SYMLINKS = NO
710
711# If the value of the INPUT tag contains directories, you can use the
712# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
713# certain files from those directories. Note that the wildcards are matched
714# against the file with absolute path, so to exclude all test directories
715# for example use the pattern */test/*
716
717EXCLUDE_PATTERNS =
718
719# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
720# (namespaces, classes, functions, etc.) that should be excluded from the
721# output. The symbol name can be a fully qualified name, a word, or if the
722# wildcard * is used, a substring. Examples: ANamespace, AClass,
723# AClass::ANamespace, ANamespace::*Test
724
725EXCLUDE_SYMBOLS =
726
727# The EXAMPLE_PATH tag can be used to specify one or more files or
728# directories that contain example code fragments that are included (see
729# the \include command).
730
731EXAMPLE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/../tests
732
733# If the value of the EXAMPLE_PATH tag contains directories, you can use the
734# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
735# and *.h) to filter out the source-files in the directories. If left
736# blank all files are included.
737
738EXAMPLE_PATTERNS =
739
740# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
741# searched for input files to be used with the \include or \dontinclude
742# commands irrespective of the value of the RECURSIVE tag.
743# Possible values are YES and NO. If left blank NO is used.
744
745EXAMPLE_RECURSIVE = YES
746
747# The IMAGE_PATH tag can be used to specify one or more files or
748# directories that contain image that are included in the documentation (see
749# the \image command).
750
751IMAGE_PATH =
752
753# The INPUT_FILTER tag can be used to specify a program that doxygen should
754# invoke to filter for each input file. Doxygen will invoke the filter program
755# by executing (via popen()) the command <filter> <input-file>, where <filter>
756# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
757# input file. Doxygen will then use the output that the filter program writes
758# to standard output.
759# If FILTER_PATTERNS is specified, this tag will be
760# ignored.
761
762INPUT_FILTER =
763
764# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
765# basis.
766# Doxygen will compare the file name with each pattern and apply the
767# filter if there is a match.
768# The filters are a list of the form:
769# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
770# info on how filters are used. If FILTER_PATTERNS is empty or if
771# non of the patterns match the file name, INPUT_FILTER is applied.
772
773FILTER_PATTERNS =
774
775# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
776# INPUT_FILTER) will be used to filter the input files when producing source
777# files to browse (i.e. when SOURCE_BROWSER is set to YES).
778
779FILTER_SOURCE_FILES = NO
780
781# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
782# pattern. A pattern will override the setting for FILTER_PATTERN (if any)
783# and it is also possible to disable source filtering for a specific pattern
784# using *.ext= (so without naming a filter). This option only has effect when
785# FILTER_SOURCE_FILES is enabled.
786
787FILTER_SOURCE_PATTERNS =
788
789# If the USE_MD_FILE_AS_MAINPAGE tag refers to the name of a markdown file that
790# is part of the input, its contents will be placed on the main page (index.html).
791# This can be useful if you have a project on for instance GitHub and want reuse
792# the introduction page also for the doxygen output.
793
794USE_MDFILE_AS_MAINPAGE = @CMAKE_SOURCE_DIR@/README.md
795
796#---------------------------------------------------------------------------
797# configuration options related to source browsing
798#---------------------------------------------------------------------------
799
800# If the SOURCE_BROWSER tag is set to YES then a list of source files will
801# be generated. Documented entities will be cross-referenced with these sources.
802# Note: To get rid of all source code in the generated output, make sure also
803# VERBATIM_HEADERS is set to NO.
804
805SOURCE_BROWSER = YES
806
807# Setting the INLINE_SOURCES tag to YES will include the body
808# of functions and classes directly in the documentation.
809
810INLINE_SOURCES = NO
811
812# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
813# doxygen to hide any special comment blocks from generated source code
814# fragments. Normal C, C++ and Fortran comments will always remain visible.
815
816STRIP_CODE_COMMENTS = YES
817
818# If the REFERENCED_BY_RELATION tag is set to YES
819# then for each documented function all documented
820# functions referencing it will be listed.
821
822REFERENCED_BY_RELATION = YES
823
824# If the REFERENCES_RELATION tag is set to YES
825# then for each documented function all documented entities
826# called/used by that function will be listed.
827
828REFERENCES_RELATION = YES
829
830# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
831# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
832# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
833# link to the source code.
834# Otherwise they will link to the documentation.
835
836REFERENCES_LINK_SOURCE = YES
837
838# If the USE_HTAGS tag is set to YES then the references to source code
839# will point to the HTML generated by the htags(1) tool instead of doxygen
840# built-in source browser. The htags tool is part of GNU's global source
841# tagging system (see http://www.gnu.org/software/global/global.html). You
842# will need version 4.8.6 or higher.
843
844USE_HTAGS = NO
845
846# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
847# will generate a verbatim copy of the header file for each class for
848# which an include is specified. Set to NO to disable this.
849
850VERBATIM_HEADERS = YES
851
852#---------------------------------------------------------------------------
853# configuration options related to the alphabetical class index
854#---------------------------------------------------------------------------
855
856# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
857# of all compounds will be generated. Enable this if the project
858# contains a lot of classes, structs, unions or interfaces.
859
860ALPHABETICAL_INDEX = YES
861
862# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
863# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
864# in which this list will be split (can be a number in the range [1..20])
865
866COLS_IN_ALPHA_INDEX = 5
867
868# In case all classes in a project start with a common prefix, all
869# classes will be put under the same header in the alphabetical index.
870# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
871# should be ignored while generating the index headers.
872
873IGNORE_PREFIX =
874
875#---------------------------------------------------------------------------
876# configuration options related to the HTML output
877#---------------------------------------------------------------------------
878
879# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
880# generate HTML output.
881
882GENERATE_HTML = YES
883
884# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
885# If a relative path is entered the value of OUTPUT_DIRECTORY will be
886# put in front of it. If left blank `html' will be used as the default path.
887
888HTML_OUTPUT = html
889
890# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
891# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
892# doxygen will generate files with .html extension.
893
894HTML_FILE_EXTENSION = .html
895
896# The HTML_HEADER tag can be used to specify a personal HTML header for
897# each generated HTML page. If it is left blank doxygen will generate a
898# standard header. Note that when using a custom header you are responsible
899# for the proper inclusion of any scripts and style sheets that doxygen
900# needs, which is dependent on the configuration options used.
901# It is advised to generate a default header using "doxygen -w html
902# header.html footer.html stylesheet.css YourConfigFile" and then modify
903# that header. Note that the header is subject to change so you typically
904# have to redo this when upgrading to a newer version of doxygen or when
905# changing the value of configuration settings such as GENERATE_TREEVIEW!
906
907HTML_HEADER =
908
909# The HTML_FOOTER tag can be used to specify a personal HTML footer for
910# each generated HTML page. If it is left blank doxygen will generate a
911# standard footer.
912
913HTML_FOOTER =
914
915# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
916# style sheet that is used by each HTML page. It can be used to
917# fine-tune the look of the HTML output. If left blank doxygen will
918# generate a default style sheet. Note that it is recommended to use
919# HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this
920# tag will in the future become obsolete.
921
922HTML_STYLESHEET =
923
924# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional
925# user-defined cascading style sheet that is included after the standard
926# style sheets created by doxygen. Using this option one can overrule
927# certain style aspects. This is preferred over using HTML_STYLESHEET
928# since it does not replace the standard style sheet and is therefor more
929# robust against future updates. Doxygen will copy the style sheet file to
930# the output directory.
931
932HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/extra.css
933
934# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
935# other source files which should be copied to the HTML output directory. Note
936# that these files will be copied to the base HTML output directory. Use the
937# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
938# files. In the HTML_STYLESHEET file, use the file name only. Also note that
939# the files will be copied as-is; there are no commands or markers available.
940
941HTML_EXTRA_FILES =
942
943# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
944# Doxygen will adjust the colors in the style sheet and background images
945# according to this color. Hue is specified as an angle on a colorwheel,
946# see http://en.wikipedia.org/wiki/Hue for more information.
947# For instance the value 0 represents red, 60 is yellow, 120 is green,
948# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
949# The allowed range is 0 to 359.
950
951HTML_COLORSTYLE_HUE = 220
952
953# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
954# the colors in the HTML output. For a value of 0 the output will use
955# grayscales only. A value of 255 will produce the most vivid colors.
956
957HTML_COLORSTYLE_SAT = 100
958
959# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
960# the luminance component of the colors in the HTML output. Values below
961# 100 gradually make the output lighter, whereas values above 100 make
962# the output darker. The value divided by 100 is the actual gamma applied,
963# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
964# and 100 does not change the gamma.
965
966HTML_COLORSTYLE_GAMMA = 80
967
968# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
969# page will contain the date and time when the page was generated. Setting
970# this to NO can help when comparing the output of multiple runs.
971
972HTML_TIMESTAMP = YES
973
974# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
975# documentation will contain sections that can be hidden and shown after the
976# page has loaded.
977
978HTML_DYNAMIC_SECTIONS = YES
979
980# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of
981# entries shown in the various tree structured indices initially; the user
982# can expand and collapse entries dynamically later on. Doxygen will expand
983# the tree to such a level that at most the specified number of entries are
984# visible (unless a fully collapsed tree already exceeds this amount).
985# So setting the number of entries 1 will produce a full collapsed tree by
986# default. 0 is a special value representing an infinite number of entries
987# and will result in a full expanded tree by default.
988
989HTML_INDEX_NUM_ENTRIES = 100
990
991# If the GENERATE_DOCSET tag is set to YES, additional index files
992# will be generated that can be used as input for Apple's Xcode 3
993# integrated development environment, introduced with OSX 10.5 (Leopard).
994# To create a documentation set, doxygen will generate a Makefile in the
995# HTML output directory. Running make will produce the docset in that
996# directory and running "make install" will install the docset in
997# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
998# it at startup.
999# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
1000# for more information.
1001
1002GENERATE_DOCSET = NO
1003
1004# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
1005# feed. A documentation feed provides an umbrella under which multiple
1006# documentation sets from a single provider (such as a company or product suite)
1007# can be grouped.
1008
1009DOCSET_FEEDNAME = "Doxygen generated docs"
1010
1011# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
1012# should uniquely identify the documentation set bundle. This should be a
1013# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
1014# will append .docset to the name.
1015
1016DOCSET_BUNDLE_ID = org.doxygen.Project
1017
1018# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely
1019# identify the documentation publisher. This should be a reverse domain-name
1020# style string, e.g. com.mycompany.MyDocSet.documentation.
1021
1022DOCSET_PUBLISHER_ID = org.doxygen.Publisher
1023
1024# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
1025
1026DOCSET_PUBLISHER_NAME = Publisher
1027
1028# If the GENERATE_HTMLHELP tag is set to YES, additional index files
1029# will be generated that can be used as input for tools like the
1030# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
1031# of the generated HTML documentation.
1032
1033GENERATE_HTMLHELP = NO
1034
1035# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
1036# be used to specify the file name of the resulting .chm file. You
1037# can add a path in front of the file if the result should not be
1038# written to the html output directory.
1039
1040CHM_FILE =
1041
1042# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
1043# be used to specify the location (absolute path including file name) of
1044# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
1045# the HTML help compiler on the generated index.hhp.
1046
1047HHC_LOCATION =
1048
1049# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
1050# controls if a separate .chi index file is generated (YES) or that
1051# it should be included in the master .chm file (NO).
1052
1053GENERATE_CHI = NO
1054
1055# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
1056# is used to encode HtmlHelp index (hhk), content (hhc) and project file
1057# content.
1058
1059CHM_INDEX_ENCODING =
1060
1061# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
1062# controls whether a binary table of contents is generated (YES) or a
1063# normal table of contents (NO) in the .chm file.
1064
1065BINARY_TOC = NO
1066
1067# The TOC_EXPAND flag can be set to YES to add extra items for group members
1068# to the contents of the HTML help documentation and to the tree view.
1069
1070TOC_EXPAND = NO
1071
1072# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
1073# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated
1074# that can be used as input for Qt's qhelpgenerator to generate a
1075# Qt Compressed Help (.qch) of the generated HTML documentation.
1076
1077GENERATE_QHP = NO
1078
1079# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
1080# be used to specify the file name of the resulting .qch file.
1081# The path specified is relative to the HTML output folder.
1082
1083QCH_FILE =
1084
1085# The QHP_NAMESPACE tag specifies the namespace to use when generating
1086# Qt Help Project output. For more information please see
1087# http://doc.trolltech.com/qthelpproject.html#namespace
1088
1089QHP_NAMESPACE = org.doxygen.Project
1090
1091# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
1092# Qt Help Project output. For more information please see
1093# http://doc.trolltech.com/qthelpproject.html#virtual-folders
1094
1095QHP_VIRTUAL_FOLDER = doc
1096
1097# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to
1098# add. For more information please see
1099# http://doc.trolltech.com/qthelpproject.html#custom-filters
1100
1101QHP_CUST_FILTER_NAME =
1102
1103# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the
1104# custom filter to add. For more information please see
1105# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">
1106# Qt Help Project / Custom Filters</a>.
1107
1108QHP_CUST_FILTER_ATTRS =
1109
1110# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
1111# project's
1112# filter section matches.
1113# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">
1114# Qt Help Project / Filter Attributes</a>.
1115
1116QHP_SECT_FILTER_ATTRS =
1117
1118# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
1119# be used to specify the location of Qt's qhelpgenerator.
1120# If non-empty doxygen will try to run qhelpgenerator on the generated
1121# .qhp file.
1122
1123QHG_LOCATION =
1124
1125# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
1126# will be generated, which together with the HTML files, form an Eclipse help
1127# plugin. To install this plugin and make it available under the help contents
1128# menu in Eclipse, the contents of the directory containing the HTML and XML
1129# files needs to be copied into the plugins directory of eclipse. The name of
1130# the directory within the plugins directory should be the same as
1131# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
1132# the help appears.
1133
1134GENERATE_ECLIPSEHELP = NO
1135
1136# A unique identifier for the eclipse help plugin. When installing the plugin
1137# the directory name containing the HTML and XML files should also have
1138# this name.
1139
1140ECLIPSE_DOC_ID = org.doxygen.Project
1141
1142# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs)
1143# at top of each HTML page. The value NO (the default) enables the index and
1144# the value YES disables it. Since the tabs have the same information as the
1145# navigation tree you can set this option to NO if you already set
1146# GENERATE_TREEVIEW to YES.
1147
1148DISABLE_INDEX = YES
1149
1150# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
1151# structure should be generated to display hierarchical information.
1152# If the tag value is set to YES, a side panel will be generated
1153# containing a tree-like index structure (just like the one that
1154# is generated for HTML Help). For this to work a browser that supports
1155# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
1156# Windows users are probably better off using the HTML help feature.
1157# Since the tree basically has the same information as the tab index you
1158# could consider to set DISABLE_INDEX to NO when enabling this option.
1159
1160GENERATE_TREEVIEW = YES
1161
1162# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values
1163# (range [0,1..20]) that doxygen will group on one line in the generated HTML
1164# documentation. Note that a value of 0 will completely suppress the enum
1165# values from appearing in the overview section.
1166
1167ENUM_VALUES_PER_LINE = 1
1168
1169# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
1170# used to set the initial width (in pixels) of the frame in which the tree
1171# is shown.
1172
1173TREEVIEW_WIDTH = 250
1174
1175# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open
1176# links to external symbols imported via tag files in a separate window.
1177
1178EXT_LINKS_IN_WINDOW = NO
1179
1180# Use this tag to change the font size of Latex formulas included
1181# as images in the HTML documentation. The default is 10. Note that
1182# when you change the font size after a successful doxygen run you need
1183# to manually remove any form_*.png images from the HTML output directory
1184# to force them to be regenerated.
1185
1186FORMULA_FONTSIZE = 10
1187
1188# Use the FORMULA_TRANPARENT tag to determine whether or not the images
1189# generated for formulas are transparent PNGs. Transparent PNGs are
1190# not supported properly for IE 6.0, but are supported on all modern browsers.
1191# Note that when changing this option you need to delete any form_*.png files
1192# in the HTML output before the changes have effect.
1193
1194FORMULA_TRANSPARENT = YES
1195
1196# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax
1197# (see http://www.mathjax.org) which uses client side Javascript for the
1198# rendering instead of using prerendered bitmaps. Use this if you do not
1199# have LaTeX installed or if you want to formulas look prettier in the HTML
1200# output. When enabled you may also need to install MathJax separately and
1201# configure the path to it using the MATHJAX_RELPATH option.
1202
1203USE_MATHJAX = NO
1204
1205# When MathJax is enabled you can set the default output format to be used for
1206# thA MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and
1207# SVG. The default value is HTML-CSS, which is slower, but has the best
1208# compatibility.
1209
1210MATHJAX_FORMAT = HTML-CSS
1211
1212# When MathJax is enabled you need to specify the location relative to the
1213# HTML output directory using the MATHJAX_RELPATH option. The destination
1214# directory should contain the MathJax.js script. For instance, if the mathjax
1215# directory is located at the same level as the HTML output directory, then
1216# MATHJAX_RELPATH should be ../mathjax. The default value points to
1217# the MathJax Content Delivery Network so you can quickly see the result without
1218# installing MathJax.
1219# However, it is strongly recommended to install a local
1220# copy of MathJax from http://www.mathjax.org before deployment.
1221
1222MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
1223
1224# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
1225# names that should be enabled during MathJax rendering.
1226
1227MATHJAX_EXTENSIONS =
1228
1229# When the SEARCHENGINE tag is enabled doxygen will generate a search box
1230# for the HTML output. The underlying search engine uses javascript
1231# and DHTML and should work on any modern browser. Note that when using
1232# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
1233# (GENERATE_DOCSET) there is already a search function so this one should
1234# typically be disabled. For large projects the javascript based search engine
1235# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
1236
1237SEARCHENGINE = NO
1238
1239# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
1240# implemented using a web server instead of a web client using Javascript.
1241# There are two flavours of web server based search depending on the
1242# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for
1243# searching and an index file used by the script. When EXTERNAL_SEARCH is
1244# enabled the indexing and searching needs to be provided by external tools.
1245# See the manual for details.
1246
1247SERVER_BASED_SEARCH = NO
1248
1249# When EXTERNAL_SEARCH is enabled doxygen will no longer generate the PHP
1250# script for searching. Instead the search results are written to an XML file
1251# which needs to be processed by an external indexer. Doxygen will invoke an
1252# external search engine pointed to by the SEARCHENGINE_URL option to obtain
1253# the search results. Doxygen ships with an example indexer (doxyindexer) and
1254# search engine (doxysearch.cgi) which are based on the open source search engine
1255# library Xapian. See the manual for configuration details.
1256
1257EXTERNAL_SEARCH = NO
1258
1259# The SEARCHENGINE_URL should point to a search engine hosted by a web server
1260# which will returned the search results when EXTERNAL_SEARCH is enabled.
1261# Doxygen ships with an example search engine (doxysearch) which is based on
1262# the open source search engine library Xapian. See the manual for configuration
1263# details.
1264
1265SEARCHENGINE_URL =
1266
1267# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
1268# search data is written to a file for indexing by an external tool. With the
1269# SEARCHDATA_FILE tag the name of this file can be specified.
1270
1271SEARCHDATA_FILE = searchdata.xml
1272
1273# When SERVER_BASED_SEARCH AND EXTERNAL_SEARCH are both enabled the
1274# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
1275# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
1276# projects and redirect the results back to the right project.
1277
1278EXTERNAL_SEARCH_ID =
1279
1280# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
1281# projects other than the one defined by this configuration file, but that are
1282# all added to the same external search index. Each project needs to have a
1283# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id
1284# of to a relative location where the documentation can be found.
1285# The format is: EXTRA_SEARCH_MAPPINGS = id1=loc1 id2=loc2 ...
1286
1287EXTRA_SEARCH_MAPPINGS =
1288
1289#---------------------------------------------------------------------------
1290# configuration options related to the LaTeX output
1291#---------------------------------------------------------------------------
1292
1293# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
1294# generate Latex output.
1295
1296GENERATE_LATEX = YES
1297
1298# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
1299# If a relative path is entered the value of OUTPUT_DIRECTORY will be
1300# put in front of it. If left blank `latex' will be used as the default path.
1301
1302LATEX_OUTPUT = latex
1303
1304# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
1305# invoked. If left blank `latex' will be used as the default command name.
1306# Note that when enabling USE_PDFLATEX this option is only used for
1307# generating bitmaps for formulas in the HTML output, but not in the
1308# Makefile that is written to the output directory.
1309
1310LATEX_CMD_NAME = latex
1311
1312# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
1313# generate index for LaTeX. If left blank `makeindex' will be used as the
1314# default command name.
1315
1316MAKEINDEX_CMD_NAME = makeindex
1317
1318# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
1319# LaTeX documents. This may be useful for small projects and may help to
1320# save some trees in general.
1321
1322COMPACT_LATEX = YES
1323
1324# The PAPER_TYPE tag can be used to set the paper type that is used
1325# by the printer. Possible values are: a4, letter, legal and
1326# executive. If left blank a4wide will be used.
1327
1328PAPER_TYPE = a4
1329
1330# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
1331# packages that should be included in the LaTeX output.
1332
1333EXTRA_PACKAGES =
1334
1335# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
1336# the generated latex document. The header should contain everything until
1337# the first chapter. If it is left blank doxygen will generate a
1338# standard header. Notice: only use this tag if you know what you are doing!
1339
1340LATEX_HEADER =
1341
1342# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for
1343# the generated latex document. The footer should contain everything after
1344# the last chapter. If it is left blank doxygen will generate a
1345# standard footer. Notice: only use this tag if you know what you are doing!
1346
1347LATEX_FOOTER =
1348
1349# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
1350# is prepared for conversion to pdf (using ps2pdf). The pdf file will
1351# contain links (just like the HTML output) instead of page references
1352# This makes the output suitable for online browsing using a pdf viewer.
1353
1354PDF_HYPERLINKS = YES
1355
1356# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
1357# plain latex in the generated Makefile. Set this option to YES to get a
1358# higher quality PDF documentation.
1359
1360USE_PDFLATEX = YES
1361
1362# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
1363# command to the generated LaTeX files. This will instruct LaTeX to keep
1364# running if errors occur, instead of asking the user for help.
1365# This option is also used when generating formulas in HTML.
1366
1367LATEX_BATCHMODE = NO
1368
1369# If LATEX_HIDE_INDICES is set to YES then doxygen will not
1370# include the index chapters (such as File Index, Compound Index, etc.)
1371# in the output.
1372
1373LATEX_HIDE_INDICES = NO
1374
1375# If LATEX_SOURCE_CODE is set to YES then doxygen will include
1376# source code with syntax highlighting in the LaTeX output.
1377# Note that which sources are shown also depends on other settings
1378# such as SOURCE_BROWSER.
1379
1380LATEX_SOURCE_CODE = NO
1381
1382# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
1383# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See
1384# http://en.wikipedia.org/wiki/BibTeX for more info.
1385
1386LATEX_BIB_STYLE = plain
1387
1388#---------------------------------------------------------------------------
1389# configuration options related to the RTF output
1390#---------------------------------------------------------------------------
1391
1392# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
1393# The RTF output is optimized for Word 97 and may not look very pretty with
1394# other RTF readers or editors.
1395
1396GENERATE_RTF = NO
1397
1398# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
1399# If a relative path is entered the value of OUTPUT_DIRECTORY will be
1400# put in front of it. If left blank `rtf' will be used as the default path.
1401
1402RTF_OUTPUT = rtf
1403
1404# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
1405# RTF documents. This may be useful for small projects and may help to
1406# save some trees in general.
1407
1408COMPACT_RTF = NO
1409
1410# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
1411# will contain hyperlink fields. The RTF file will
1412# contain links (just like the HTML output) instead of page references.
1413# This makes the output suitable for online browsing using WORD or other
1414# programs which support those fields.
1415# Note: wordpad (write) and others do not support links.
1416
1417RTF_HYPERLINKS = NO
1418
1419# Load style sheet definitions from file. Syntax is similar to doxygen's
1420# config file, i.e. a series of assignments. You only have to provide
1421# replacements, missing definitions are set to their default value.
1422
1423RTF_STYLESHEET_FILE =
1424
1425# Set optional variables used in the generation of an rtf document.
1426# Syntax is similar to doxygen's config file.
1427
1428RTF_EXTENSIONS_FILE =
1429
1430#---------------------------------------------------------------------------
1431# configuration options related to the man page output
1432#---------------------------------------------------------------------------
1433
1434# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
1435# generate man pages
1436
1437GENERATE_MAN = YES
1438
1439# The MAN_OUTPUT tag is used to specify where the man pages will be put.
1440# If a relative path is entered the value of OUTPUT_DIRECTORY will be
1441# put in front of it. If left blank `man' will be used as the default path.
1442
1443MAN_OUTPUT = man
1444
1445# The MAN_EXTENSION tag determines the extension that is added to
1446# the generated man pages (default is the subroutine's section .3)
1447
1448MAN_EXTENSION = .3
1449
1450# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
1451# then it will generate one additional man file for each entity
1452# documented in the real man page(s). These additional files
1453# only source the real man page, but without them the man command
1454# would be unable to find the correct page. The default is NO.
1455
1456MAN_LINKS = NO
1457
1458#---------------------------------------------------------------------------
1459# configuration options related to the XML output
1460#---------------------------------------------------------------------------
1461
1462# If the GENERATE_XML tag is set to YES Doxygen will
1463# generate an XML file that captures the structure of
1464# the code including all documentation.
1465
1466GENERATE_XML = NO
1467
1468# The XML_OUTPUT tag is used to specify where the XML pages will be put.
1469# If a relative path is entered the value of OUTPUT_DIRECTORY will be
1470# put in front of it. If left blank `xml' will be used as the default path.
1471
1472XML_OUTPUT = xml
1473
1474# The XML_SCHEMA tag can be used to specify an XML schema,
1475# which can be used by a validating XML parser to check the
1476# syntax of the XML files.
1477
1478XML_SCHEMA =
1479
1480# The XML_DTD tag can be used to specify an XML DTD,
1481# which can be used by a validating XML parser to check the
1482# syntax of the XML files.
1483
1484XML_DTD =
1485
1486# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
1487# dump the program listings (including syntax highlighting
1488# and cross-referencing information) to the XML output. Note that
1489# enabling this will significantly increase the size of the XML output.
1490
1491XML_PROGRAMLISTING = YES
1492
1493#---------------------------------------------------------------------------
1494# configuration options for the AutoGen Definitions output
1495#---------------------------------------------------------------------------
1496
1497# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
1498# generate an AutoGen Definitions (see autogen.sf.net) file
1499# that captures the structure of the code including all
1500# documentation. Note that this feature is still experimental
1501# and incomplete at the moment.
1502
1503GENERATE_AUTOGEN_DEF = NO
1504
1505#---------------------------------------------------------------------------
1506# configuration options related to the Perl module output
1507#---------------------------------------------------------------------------
1508
1509# If the GENERATE_PERLMOD tag is set to YES Doxygen will
1510# generate a Perl module file that captures the structure of
1511# the code including all documentation. Note that this
1512# feature is still experimental and incomplete at the
1513# moment.
1514
1515GENERATE_PERLMOD = NO
1516
1517# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
1518# the necessary Makefile rules, Perl scripts and LaTeX code to be able
1519# to generate PDF and DVI output from the Perl module output.
1520
1521PERLMOD_LATEX = NO
1522
1523# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
1524# nicely formatted so it can be parsed by a human reader.
1525# This is useful
1526# if you want to understand what is going on.
1527# On the other hand, if this
1528# tag is set to NO the size of the Perl module output will be much smaller
1529# and Perl will parse it just the same.
1530
1531PERLMOD_PRETTY = YES
1532
1533# The names of the make variables in the generated doxyrules.make file
1534# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
1535# This is useful so different doxyrules.make files included by the same
1536# Makefile don't overwrite each other's variables.
1537
1538PERLMOD_MAKEVAR_PREFIX =
1539
1540#---------------------------------------------------------------------------
1541# Configuration options related to the preprocessor
1542#---------------------------------------------------------------------------
1543
1544# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
1545# evaluate all C-preprocessor directives found in the sources and include
1546# files.
1547
1548ENABLE_PREPROCESSING = YES
1549
1550# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
1551# names in the source code. If set to NO (the default) only conditional
1552# compilation will be performed. Macro expansion can be done in a controlled
1553# way by setting EXPAND_ONLY_PREDEF to YES.
1554
1555MACRO_EXPANSION = NO
1556
1557# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
1558# then the macro expansion is limited to the macros specified with the
1559# PREDEFINED and EXPAND_AS_DEFINED tags.
1560
1561EXPAND_ONLY_PREDEF = NO
1562
1563# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
1564# pointed to by INCLUDE_PATH will be searched when a #include is found.
1565
1566SEARCH_INCLUDES = YES
1567
1568# The INCLUDE_PATH tag can be used to specify one or more directories that
1569# contain include files that are not input files but should be processed by
1570# the preprocessor.
1571
1572INCLUDE_PATH =
1573
1574# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
1575# patterns (like *.h and *.hpp) to filter out the header-files in the
1576# directories. If left blank, the patterns specified with FILE_PATTERNS will
1577# be used.
1578
1579INCLUDE_FILE_PATTERNS =
1580
1581# The PREDEFINED tag can be used to specify one or more macro names that
1582# are defined before the preprocessor is started (similar to the -D option of
1583# gcc). The argument of the tag is a list of macros of the form: name
1584# or name=definition (no spaces). If the definition and the = are
1585# omitted =1 is assumed. To prevent a macro definition from being
1586# undefined via #undef or recursively expanded use the := operator
1587# instead of the = operator.
1588
1589PREDEFINED =
1590
1591# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
1592# this tag can be used to specify a list of macro names that should be expanded.
1593# The macro definition that is found in the sources will be used.
1594# Use the PREDEFINED tag if you want to use a different macro definition that
1595# overrules the definition found in the source code.
1596
1597EXPAND_AS_DEFINED =
1598
1599# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
1600# doxygen's preprocessor will remove all references to function-like macros
1601# that are alone on a line, have an all uppercase name, and do not end with a
1602# semicolon, because these will confuse the parser if not removed.
1603
1604SKIP_FUNCTION_MACROS = YES
1605
1606#---------------------------------------------------------------------------
1607# Configuration::additions related to external references
1608#---------------------------------------------------------------------------
1609
1610# The TAGFILES option can be used to specify one or more tagfiles. For each
1611# tag file the location of the external documentation should be added. The
1612# format of a tag file without this location is as follows:
1613#
1614# TAGFILES = file1 file2 ...
1615# Adding location for the tag files is done as follows:
1616#
1617# TAGFILES = file1=loc1 "file2 = loc2" ...
1618# where "loc1" and "loc2" can be relative or absolute paths
1619# or URLs. Note that each tag file must have a unique name (where the name does
1620# NOT include the path). If a tag file is not located in the directory in which
1621# doxygen is run, you must also specify the path to the tagfile here.
1622
1623TAGFILES =
1624
1625# When a file name is specified after GENERATE_TAGFILE, doxygen will create
1626# a tag file that is based on the input files it reads.
1627
1628GENERATE_TAGFILE =
1629
1630# If the ALLEXTERNALS tag is set to YES all external classes will be listed
1631# in the class index. If set to NO only the inherited external classes
1632# will be listed.
1633
1634ALLEXTERNALS = NO
1635
1636# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
1637# in the modules index. If set to NO, only the current project's groups will
1638# be listed.
1639
1640EXTERNAL_GROUPS = YES
1641
1642# The PERL_PATH should be the absolute path and name of the perl script
1643# interpreter (i.e. the result of `which perl').
1644
1645PERL_PATH = /usr/bin/perl
1646
1647#---------------------------------------------------------------------------
1648# Configuration options related to the dot tool
1649#---------------------------------------------------------------------------
1650
1651# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
1652# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
1653# or super classes. Setting the tag to NO turns the diagrams off. Note that
1654# this option also works with HAVE_DOT disabled, but it is recommended to
1655# install and use dot, since it yields more powerful graphs.
1656
1657CLASS_DIAGRAMS = YES
1658
1659# You can define message sequence charts within doxygen comments using the \msc
1660# command. Doxygen will then run the mscgen tool (see
1661# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
1662# documentation. The MSCGEN_PATH tag allows you to specify the directory where
1663# the mscgen tool resides. If left empty the tool is assumed to be found in the
1664# default search path.
1665
1666MSCGEN_PATH =
1667
1668# If set to YES, the inheritance and collaboration graphs will hide
1669# inheritance and usage relations if the target is undocumented
1670# or is not a class.
1671
1672HIDE_UNDOC_RELATIONS = NO
1673
1674# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
1675# available from the path. This tool is part of Graphviz, a graph visualization
1676# toolkit from AT&T and Lucent Bell Labs. The other options in this section
1677# have no effect if this option is set to NO (the default)
1678
1679HAVE_DOT = YES
1680
1681# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is
1682# allowed to run in parallel. When set to 0 (the default) doxygen will
1683# base this on the number of processors available in the system. You can set it
1684# explicitly to a value larger than 0 to get control over the balance
1685# between CPU load and processing speed.
1686
1687DOT_NUM_THREADS = 1
1688
1689# By default doxygen will use the Helvetica font for all dot files that
1690# doxygen generates. When you want a differently looking font you can specify
1691# the font name using DOT_FONTNAME. You need to make sure dot is able to find
1692# the font, which can be done by putting it in a standard location or by setting
1693# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the
1694# directory containing the font.
1695
1696DOT_FONTNAME = Helvetica
1697
1698# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
1699# The default size is 10pt.
1700
1701DOT_FONTSIZE = 10
1702
1703# By default doxygen will tell dot to use the Helvetica font.
1704# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to
1705# set the path where dot can find it.
1706
1707DOT_FONTPATH =
1708
1709# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
1710# will generate a graph for each documented class showing the direct and
1711# indirect inheritance relations. Setting this tag to YES will force the
1712# CLASS_DIAGRAMS tag to NO.
1713
1714CLASS_GRAPH = YES
1715
1716# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
1717# will generate a graph for each documented class showing the direct and
1718# indirect implementation dependencies (inheritance, containment, and
1719# class references variables) of the class with other documented classes.
1720
1721COLLABORATION_GRAPH = YES
1722
1723# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
1724# will generate a graph for groups, showing the direct groups dependencies
1725
1726GROUP_GRAPHS = YES
1727
1728# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
1729# collaboration diagrams in a style similar to the OMG's Unified Modeling
1730# Language.
1731
1732UML_LOOK = YES
1733
1734# If the UML_LOOK tag is enabled, the fields and methods are shown inside
1735# the class node. If there are many fields or methods and many nodes the
1736# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
1737# threshold limits the number of items for each type to make the size more
1738# managable. Set this to 0 for no limit. Note that the threshold may be
1739# exceeded by 50% before the limit is enforced.
1740
1741UML_LIMIT_NUM_FIELDS = 10
1742
1743# If set to YES, the inheritance and collaboration graphs will show the
1744# relations between templates and their instances.
1745
1746TEMPLATE_RELATIONS = NO
1747
1748# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
1749# tags are set to YES then doxygen will generate a graph for each documented
1750# file showing the direct and indirect include dependencies of the file with
1751# other documented files.
1752
1753INCLUDE_GRAPH = YES
1754
1755# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
1756# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
1757# documented header file showing the documented files that directly or
1758# indirectly include this file.
1759
1760INCLUDED_BY_GRAPH = YES
1761
1762# If the CALL_GRAPH and HAVE_DOT options are set to YES then
1763# doxygen will generate a call dependency graph for every global function
1764# or class method. Note that enabling this option will significantly increase
1765# the time of a run. So in most cases it will be better to enable call graphs
1766# for selected functions only using the \callgraph command.
1767
1768CALL_GRAPH = YES
1769
1770# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
1771# doxygen will generate a caller dependency graph for every global function
1772# or class method. Note that enabling this option will significantly increase
1773# the time of a run. So in most cases it will be better to enable caller
1774# graphs for selected functions only using the \callergraph command.
1775
1776CALLER_GRAPH = NO
1777
1778# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
1779# will generate a graphical hierarchy of all classes instead of a textual one.
1780
1781GRAPHICAL_HIERARCHY = YES
1782
1783# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES
1784# then doxygen will show the dependencies a directory has on other directories
1785# in a graphical way. The dependency relations are determined by the #include
1786# relations between the files in the directories.
1787
1788DIRECTORY_GRAPH = YES
1789
1790# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
1791# generated by dot. Possible values are svg, png, jpg, or gif.
1792# If left blank png will be used. If you choose svg you need to set
1793# HTML_FILE_EXTENSION to xhtml in order to make the SVG files
1794# visible in IE 9+ (other browsers do not have this requirement).
1795
1796DOT_IMAGE_FORMAT = png
1797
1798# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
1799# enable generation of interactive SVG images that allow zooming and panning.
1800# Note that this requires a modern browser other than Internet Explorer.
1801# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you
1802# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files
1803# visible. Older versions of IE do not have SVG support.
1804
1805INTERACTIVE_SVG = YES
1806
1807# The tag DOT_PATH can be used to specify the path where the dot tool can be
1808# found. If left blank, it is assumed the dot tool can be found in the path.
1809
1810DOT_PATH =
1811
1812# The DOTFILE_DIRS tag can be used to specify one or more directories that
1813# contain dot files that are included in the documentation (see the
1814# \dotfile command).
1815
1816DOTFILE_DIRS =
1817
1818# The MSCFILE_DIRS tag can be used to specify one or more directories that
1819# contain msc files that are included in the documentation (see the
1820# \mscfile command).
1821
1822MSCFILE_DIRS =
1823
1824# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
1825# nodes that will be shown in the graph. If the number of nodes in a graph
1826# becomes larger than this value, doxygen will truncate the graph, which is
1827# visualized by representing a node as a red box. Note that doxygen if the
1828# number of direct children of the root node in a graph is already larger than
1829# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
1830# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
1831
1832DOT_GRAPH_MAX_NODES = 50
1833
1834# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
1835# graphs generated by dot. A depth value of 3 means that only nodes reachable
1836# from the root by following a path via at most 3 edges will be shown. Nodes
1837# that lay further from the root node will be omitted. Note that setting this
1838# option to 1 or 2 may greatly reduce the computation time needed for large
1839# code bases. Also note that the size of a graph can be further restricted by
1840# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
1841
1842MAX_DOT_GRAPH_DEPTH = 0
1843
1844# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
1845# background. This is disabled by default, because dot on Windows does not
1846# seem to support this out of the box. Warning: Depending on the platform used,
1847# enabling this option may lead to badly anti-aliased labels on the edges of
1848# a graph (i.e. they become hard to read).
1849
1850DOT_TRANSPARENT = YES
1851
1852# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
1853# files in one run (i.e. multiple -o and -T options on the command line). This
1854# makes dot run faster, but since only newer versions of dot (>1.8.10)
1855# support this, this feature is disabled by default.
1856
1857DOT_MULTI_TARGETS = YES
1858
1859# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
1860# generate a legend page explaining the meaning of the various boxes and
1861# arrows in the dot generated graphs.
1862
1863GENERATE_LEGEND = YES
1864
1865# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
1866# remove the intermediate dot files that are used to generate
1867# the various graphs.
1868
1869DOT_CLEANUP = YES
01870
=== added directory 'examples/mfw-plugin-dummy/include'
=== added file 'examples/mfw-plugin-dummy/include/CMakeLists.txt'
--- examples/mfw-plugin-dummy/include/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/CMakeLists.txt 2017-03-22 21:22:50 +0000
@@ -0,0 +1,3 @@
1# make the .h files visible on qtcreator
2file(GLOB_RECURSE H_FILES_PLUGIN *.h)
3add_custom_target(dot_h_files_plugin ALL SOURCES ${H_FILES_PLUGIN})
04
=== added directory 'examples/mfw-plugin-dummy/include/dummy'
=== added file 'examples/mfw-plugin-dummy/include/dummy/chat.h'
--- examples/mfw-plugin-dummy/include/dummy/chat.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/chat.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,31 @@
1#ifndef DUMMY_CLI_CHAT
2#define DUMMY_CLI_CHAT
3
4#include <messaging/chat.h>
5
6#include <map>
7
8namespace dummy
9{
10
11/// @brief base class not instantiable for ContactChat, GroupChat, ...
12class Chat
13 : public messaging::Chat
14{
15public:
16 virtual ~Chat();
17 std::string download_file(std::string) override;
18 void handle_incoming_message(const messaging::Message& message);
19
20protected:
21 Chat(const std::shared_ptr<messaging::Chat::Observer>& observer);
22
23 void mark_message_as_delivered(const std::string &alias, uint session_id = 0);
24 void mark_message_as_read(const std::string &alias, uint session_id = 0);
25
26};
27
28}
29
30#endif // DUMMY_CLI_CHAT
31
032
=== added file 'examples/mfw-plugin-dummy/include/dummy/connection.h'
--- examples/mfw-plugin-dummy/include/dummy/connection.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/connection.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,98 @@
1#ifndef DUMMY_CLI_CONNECTION_H_
2#define DUMMY_CLI_CONNECTION_H_
3
4#include <dummy/visibility.h>
5
6#include <dummy/messenger.h>
7#include <dummy/presence_manager.h>
8#include <dummy/group_starter.h>
9
10#include <messaging/associative_dictionary.h>
11#include <messaging/connection.h>
12
13
14namespace messaging
15{
16// Handy fw declarations
17class Variant;
18class BoostVariant;
19}
20
21class Connection;
22
23namespace dummy
24{
25
26class Connector;
27
28/// @brief Connection models an active, logged in session with DUMMY server.
29class DUMMY_PUBLIC Connection : public messaging::Connection, public std::enable_shared_from_this<Connection>
30{
31public:
32
33 /// @brief Constructs a new connection instance with the given connector as parent.
34 ///
35 /// Attempts a login on construction.
36 ///
37 /// @throws dummy::Error if there are any issues logging in to the DUMMY server.
38 Connection(const std::shared_ptr<messaging::Connection::Observer>& connection_observer,
39 const std::shared_ptr<messaging::Messenger::Observer>& messenger_observer,
40 const std::shared_ptr<messaging::PresenceManager::Observer>& presence_observer,
41 const messaging::Dictionary<std::string, messaging::Variant>& dict,
42 Connector *connector);
43
44 /// @brief ~Connection frees up all resources and logs out from the DUMMY server.
45 ~Connection();
46
47 /// @brief presence_manager returns a mutable reference to an instance of Presence
48 std::shared_ptr<messaging::PresenceManager> presence_manager() override;
49
50 /// @brief messenger returns a mutable reference to an instance of Messenger.
51 std::shared_ptr<messaging::Messenger> messenger() override;
52
53 /// @brief group_starter returns a mutable referece to an instance of GroupStarter
54 std::shared_ptr<messaging::GroupStarter> group_starter() override;
55
56 /// @brief returns identifier of current plugin user
57 std::string self_identifier() override;
58
59 /// @brief login log in to server
60 void connect() override;
61
62 /// @brief logout logs out from server
63 void disconnect(messaging::Connection::StatusChangedReason reason) override;
64
65 /// @brief change_status changes the current status of connection to the server
66 void set_status(Status new_status, StatusChangedReason reason = StatusChangedReason::not_specified);
67
68 /// @brief request_presence request the current state for a peer
69 void request_presence(const std::string& sip_uri);
70
71 /// @brief normalize_identifier unifies the format of an identifier
72 std::string normalize_identifier(const std::string& id) override;
73
74 /// @brief checks if an identifier is valid
75 bool is_valid_identifier(const std::string &id) override;
76
77private:
78
79 /// @brief parent reference
80 Connector* connector_;
81
82 /// @brief The messenger instance for managing IM messages
83 std::shared_ptr<Messenger> messenger_;
84 /// @brief the instance to manage the presence
85 std::shared_ptr<PresenceManager> presence_manager_;
86 /// @brief the instance to manage the group creation/acceptance/rejoin
87 std::shared_ptr<GroupStarter> group_starter_;
88
89 std::shared_ptr<messaging::Messenger::Observer> messenger_observer_;
90
91 std::string account;
92 std::string password;
93};
94}
95
96
97
98#endif // DUMMY_CLI_CONNECTION_H_
099
=== added file 'examples/mfw-plugin-dummy/include/dummy/connector.h'
--- examples/mfw-plugin-dummy/include/dummy/connector.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/connector.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,58 @@
1#ifndef DUMMY_CLI_CONNECTOR_H_
2#define DUMMY_CLI_CONNECTOR_H_
3
4#include <dummy/visibility.h>
5
6#include <messaging/connector.h>
7#include <messaging/messenger.h>
8#include <messaging/enumerator.h>
9#include <messaging/associative_dictionary.h>
10
11
12namespace messaging
13{
14// Handy fw declarations
15class Variant;
16class BoostVariant;
17}
18
19namespace dummy
20{
21
22// Handy fw declarations
23class Connection;
24
25class DUMMY_PUBLIC Connector : public messaging::Connector
26{
27public:
28
29 // create returns a new shared instance of Connector.
30 static std::shared_ptr<Connector> create();
31 virtual ~Connector();
32
33 void run() override;
34 void stop() override;
35 bool network_monitor_enabled() override;
36 const messaging::Enumerator<messaging::Parameter>& parameters() const override;
37 std::shared_ptr<messaging::Connection> request_connection(
38 const std::shared_ptr<messaging::Connection::Observer>& connection_observer,
39 const std::shared_ptr<messaging::Messenger::Observer>& messenger_observer,
40 const std::shared_ptr<messaging::PresenceManager::Observer>& presence_observer,
41 const messaging::Dictionary<std::string, messaging::Variant>& dict =
42 messaging::AssociativeDictionary<std::string, messaging::BoostVariant, messaging::Variant>()) override;
43
44 void release_connection(const std::weak_ptr<Connection>& connection);
45
46private:
47 Connector();
48
49 static Connector*& mutable_instance();
50 static Connector* instance();
51
52 messaging::StdVectorEnumerator<messaging::Parameter> params_enum_;
53 std::set<std::weak_ptr<Connection>, std::owner_less<std::weak_ptr<Connection>>> connections_;
54};
55}
56
57
58#endif // DUMMY_CLI_CONNECTOR_H_
059
=== added file 'examples/mfw-plugin-dummy/include/dummy/contact_chat.h'
--- examples/mfw-plugin-dummy/include/dummy/contact_chat.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/contact_chat.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,54 @@
1#ifndef DUMMY_CLI_CONTACT_CHAT_H
2#define DUMMY_CLI_CONTACT_CHAT_H
3
4#include <messaging/user.h>
5
6#include <dummy/visibility.h>
7
8#include <dummy/chat.h>
9#include <dummy/user.h>
10
11namespace dummy
12{
13// Handy fw declarations
14class Connector;
15class Message;
16
17
18
19class DUMMY_PUBLIC ContactChat
20 : public Chat
21{
22 public:
23
24 /// @brief Creates a new instance configuring the given user as recipient.
25 static std::shared_ptr<ContactChat> create(const User& user,
26 const std::shared_ptr<messaging::Chat::Observer>& observer);
27
28 /// @brief Creates a new instance translating the given recipient to a user.
29 static std::shared_ptr<ContactChat> create(const messaging::User::shared_ptr& user,
30 const std::shared_ptr<messaging::Chat::Observer>& observer);
31
32
33 /// @brief send_message enqueues the given message for delivery.
34 /// @returns a numeric identifier referencing back to the delivery request.
35 /// @throws std::runtime_error in case of issues.
36 std::string send_message(const messaging::Message& message) override;
37 void mark_message_as_read(const std::string& message_id) override;
38 void start_typing() override;
39 void end_typing() override;
40
41private:
42 /// @brief Creates a new instance configuring the given user as recipient.
43 ContactChat(const User& user,
44 const std::shared_ptr<messaging::Chat::Observer>& observer);
45 /// @brief Creates a new instance translating the given recipient to a user.
46 ContactChat(const messaging::User::shared_ptr& user,
47 const std::shared_ptr<messaging::Chat::Observer>& observer);
48
49 User recipient;
50};
51}
52
53
54#endif // DUMMY_CLI_CONTACT_CHAT_H_
055
=== added file 'examples/mfw-plugin-dummy/include/dummy/group_chat.h'
--- examples/mfw-plugin-dummy/include/dummy/group_chat.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/group_chat.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,50 @@
1#ifndef DUMMY_CLI_GROUP_CHAT_H
2#define DUMMY_CLI_GROUP_CHAT_H
3
4#include <dummy/visibility.h>
5
6#include <dummy/chat.h>
7
8namespace messaging
9{
10class Group;
11class Interface;
12}
13
14namespace dummy
15{
16
17// Handy fw declarations
18class GroupManager;
19
20class DUMMY_PUBLIC GroupChat
21 : public Chat
22{
23public:
24
25 /// @brief Creates a new instance translating the given recipient to a user.
26 static std::shared_ptr<GroupChat> create(const std::shared_ptr<messaging::Group> &group,
27 const std::shared_ptr<messaging::Chat::Observer>& observer);
28
29 /// @brief send_message enqueues the given message for delivery.
30 /// @returns a numeric identifier referencing back to the delivery request.
31 /// @throws std::runtime_error in case of issues.
32 std::string send_message(const messaging::Message& message) override;
33 void mark_message_as_read(const std::string& message_token) override;
34 void start_typing() override;
35 void end_typing() override;
36
37 void mark_message_as_delivered(const std::string& message_token);
38 std::string id();
39
40private:
41 /// @brief Creates a new instance translating the given recipient to a user.
42 GroupChat(const std::shared_ptr<messaging::Group> &group,
43 const std::shared_ptr<messaging::Chat::Observer>& observer);
44
45 std::string channel_id;
46};
47
48}
49
50#endif // DUMMY_CLI_GROUP_CHAT_H
051
=== added file 'examples/mfw-plugin-dummy/include/dummy/group_manager.h'
--- examples/mfw-plugin-dummy/include/dummy/group_manager.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/group_manager.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,72 @@
1#ifndef DUMMY_CLI_CHAT_GROUP_MANAGER_H
2#define DUMMY_CLI_CHAT_GROUP_MANAGER_H
3
4#include <dummy/visibility.h>
5
6#include <messaging/group_manager.h>
7#include <messaging/members.h>
8
9namespace messaging
10{
11// Handy fw declarations
12class Group;
13class HasInterfaces;
14}
15
16namespace dummy
17{
18
19// Handy fw declaration
20class Messenger;
21class GroupChat;
22
23
24class DUMMY_PUBLIC GroupManager
25 : public messaging::GroupManager
26 , public std::enable_shared_from_this<GroupManager>
27{
28public:
29
30 /// @brief Creates a new chat group manager configuring the given user as recipient.
31 static std::shared_ptr<GroupManager> create(const std::shared_ptr<messaging::Group>& group,
32 const std::shared_ptr<Messenger>& messenger);
33
34 virtual ~GroupManager();
35
36 std::string group_id() override;
37 std::string group_title() override;
38 std::string group_subject() override;
39 bool persistent() override;
40 std::shared_ptr<messaging::Member> group_creator() override;
41 std::set<std::string> group_admins() override;
42 messaging::Members members() override;
43
44 void leave_group() override;
45 void dissolve_group() override;
46 void change_group_title(const std::string& new_title) override;
47 void change_group_subject(const std::string& new_subject) override;
48 void add_members(const messaging::Members& users) override;
49 void remove_members(const messaging::Members& users) override;
50
51 void set_group_permissions(bool is_chairman);
52
53 void set_observer(const std::shared_ptr<Observer> &observer);
54
55private:
56 /// @brief Creates a new instance of chat group manager
57 GroupManager(const std::shared_ptr<messaging::Group>& group,
58 const std::shared_ptr<Messenger>& messenger);
59
60 void on_plugged(const std::weak_ptr<messaging::HasInterfaces> &where) override;
61
62
63 std::weak_ptr<Messenger> messenger_;
64 std::weak_ptr<GroupChat> chat_;
65 std::string id;
66 messaging::Members participants;
67 std::string creator;
68
69};
70
71}
72#endif // DUMMY_CLI_CHAT_GROUP_MANAGER_H
073
=== added file 'examples/mfw-plugin-dummy/include/dummy/group_starter.h'
--- examples/mfw-plugin-dummy/include/dummy/group_starter.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/group_starter.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,52 @@
1#ifndef DUMMY_CLI_GROUP_STARTER
2#define DUMMY_CLI_GROUP_STARTER
3
4#include <dummy/visibility.h>
5
6#include <messaging/group_starter.h>
7#include <messaging/members.h>
8
9#include <map>
10
11namespace messaging
12{
13// Handy fw declarations
14class GroupManager;
15class Group;
16class Broadcast;
17}
18
19namespace dummy
20{
21
22class Messenger;
23class GroupManager;
24
25
26class DUMMY_PUBLIC GroupStarter
27 : public messaging::GroupStarter
28 , public std::enable_shared_from_this<GroupStarter>
29{
30public:
31
32 static std::shared_ptr<GroupStarter> create(const std::shared_ptr<Messenger>& messenger);
33
34 std::shared_ptr<messaging::GroupManager> create_group(const std::shared_ptr<messaging::Group> &group) override;
35 std::shared_ptr<messaging::GroupManager> accept_group(const std::shared_ptr<messaging::Group> &group) override;
36 std::shared_ptr<messaging::GroupManager> rejoin_group(const std::shared_ptr<messaging::Group> &group) override;
37 void reject_group(const std::shared_ptr<messaging::Group> &group) override;
38 std::shared_ptr<messaging::Broadcast> create_broadcast(const messaging::Members& recipients);
39 std::map<std::string, std::shared_ptr<dummy::GroupManager>> group_managers();
40
41private:
42 GroupStarter(const std::shared_ptr<Messenger>& messenger);
43
44 std::weak_ptr<Messenger> messenger_;
45 std::map<std::string, std::shared_ptr<dummy::GroupManager>> group_managers_;
46
47};
48
49}
50
51#endif // DUMMY_CLI_GROUP_STARTER
52
053
=== added file 'examples/mfw-plugin-dummy/include/dummy/messenger.h'
--- examples/mfw-plugin-dummy/include/dummy/messenger.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/messenger.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,50 @@
1#ifndef DUMMY_CLI_MESSENGER_H_
2#define DUMMY_CLI_MESSENGER_H_
3
4#include <dummy/visibility.h>
5
6#include <messaging/messenger.h>
7
8namespace dummy
9{
10
11// Handy fw declaration
12class Message;
13class File;
14class Connector;
15class Connection;
16class GroupManager;
17
18class DUMMY_PUBLIC Messenger
19 : public messaging::Messenger
20 , public std::enable_shared_from_this<Messenger>
21{
22public:
23 /// @cond
24 DEFINE_PTRS(Messenger);
25 /// @endcond
26
27 static std::shared_ptr<Messenger> create(const std::shared_ptr<Messenger::Observer>& messenger_observer, const std::shared_ptr<dummy::Connection> &connection);
28
29 std::shared_ptr<messaging::Chat> create_chat_with(const messaging::Recipient::shared_ptr& recipient, const std::shared_ptr<messaging::Chat::Observer>& observer) override;
30
31 void handle_incoming_message(const std::string &sender, const std::string &message);
32 void handle_incoming_channel_message(const std::string &channel, const std::string &sender, const std::string &message);
33 std::shared_ptr<GroupManager> get_group_manager(const std::string &group_chat_id);
34 void handle_join_new_channel(const std::string &channel);
35 void handle_join_new_channel(const std::string &channel, const std::string &the_creator);
36 void remove_chat(const std::string &chat_id);
37
38 std::shared_ptr<dummy::Connection> connection;
39private:
40 Messenger(const std::shared_ptr<messaging::Messenger::Observer>& observer, const std::shared_ptr<dummy::Connection> &connection);
41
42 /// @brief identity provider to correlate msg_id with imdn unique identifier. First will be
43 /// used internally for chat messages and the other used as message external unique id
44 /// @brief maintains the history of managed messages correlated to their unique_id
45 void send_delivery_notification(const std::shared_ptr<Message>& message);
46};
47}
48
49
50#endif // DUMMY_CLI_MESSENGER_H_
051
=== added file 'examples/mfw-plugin-dummy/include/dummy/presence_manager.h'
--- examples/mfw-plugin-dummy/include/dummy/presence_manager.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/presence_manager.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,40 @@
1#ifndef DUMMY_CLI_PRESENCE_MANAGER_H
2#define DUMMY_CLI_PRESENCE_MANAGER_H
3
4#include <dummy/visibility.h>
5
6#include <messaging/presence_manager.h>
7
8#include <memory>
9
10namespace dummy
11{
12
13class Connector;
14
15class DUMMY_PUBLIC PresenceManager : public messaging::PresenceManager, public std::enable_shared_from_this<PresenceManager>
16{
17public:
18
19 static std::shared_ptr<PresenceManager> create(const std::shared_ptr<messaging::PresenceManager::Observer>& observer,
20 Connector *connector);
21
22 StatusMap get_valid_statuses() override;
23 void set_self_presence(const std::string& status, const std::string& status_message = "") override;
24 void request_presence(const std::shared_ptr<messaging::Recipient>& recipient) override;
25
26private:
27 /// @brief Messenger constructs a new instance, installing the given observer instance.
28 PresenceManager(const std::shared_ptr<Observer>& observer,
29 Connector* connector);
30
31 messaging::Presence create_presence(const std::string& status, const std::string& status_message = "");
32
33 Connector *connector_;
34 StatusMap statuses_;
35};
36
37}
38
39
40#endif // DUMMY_CLI_PRESENCE_MANAGER_H
041
=== added file 'examples/mfw-plugin-dummy/include/dummy/recipient.h'
--- examples/mfw-plugin-dummy/include/dummy/recipient.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/recipient.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,19 @@
1#ifndef DUMMY_CLI_RECIPIENT_H
2#define DUMMY_CLI_RECIPIENT_H
3
4#include <messaging/recipient.h>
5
6namespace dummy
7{
8
9
10class Recipient : public messaging::Recipient
11{
12public:
13 Recipient() : messaging::Recipient{}
14};
15
16
17}
18
19#endif // DUMMY_CLI_RECIPIENT_H
020
=== added file 'examples/mfw-plugin-dummy/include/dummy/user.h'
--- examples/mfw-plugin-dummy/include/dummy/user.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/user.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,31 @@
1#ifndef DUMMY_CLI_USER_H_
2#define DUMMY_CLI_USER_H_
3
4#include <dummy/visibility.h>
5
6#include <memory>
7
8#include <map>
9
10namespace messaging
11{
12// A handy fw declaration
13class Recipient;
14}
15
16namespace dummy
17{
18
19
20/// @brief User models a subscriber to DUMMY services.
21struct DUMMY_PUBLIC User
22{
23 std::string username; ///< dummy username
24
25 static User from_recipient(const std::shared_ptr<messaging::Recipient>& recipient);
26 std::shared_ptr<messaging::Recipient> to_recipient() const;
27};
28}
29
30
31#endif // DUMMY_CLI_USER_H_
032
=== added file 'examples/mfw-plugin-dummy/include/dummy/visibility.h'
--- examples/mfw-plugin-dummy/include/dummy/visibility.h 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/include/dummy/visibility.h 2017-03-22 21:22:50 +0000
@@ -0,0 +1,7 @@
1#ifndef DUMMY_VISIBILITY_H_
2#define DUMMY_VISIBILITY_H_
3
4#define DUMMY_PUBLIC __attribute__((visibility("default")))
5#define DUMMY_LOCAL __attribute__((visibility("hidden")))
6
7#endif // DUMMY_VISIBILITY_H_
08
=== added directory 'examples/mfw-plugin-dummy/src'
=== added file 'examples/mfw-plugin-dummy/src/CMakeLists.txt'
--- examples/mfw-plugin-dummy/src/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/CMakeLists.txt 2017-03-22 21:22:50 +0000
@@ -0,0 +1,43 @@
1set(PLUGIN_NAME mfw-plugin-dummy)
2
3add_library(${PLUGIN_NAME} SHARED
4
5 ${PLUGIN_MOCS}
6
7 dummy/group_manager.cpp
8 dummy/chat.cpp
9 dummy/connection.cpp
10 dummy/connector.cpp
11 dummy/contact_chat.cpp
12 dummy/group_starter.cpp
13 dummy/messenger.cpp
14 dummy/group_chat.cpp
15 dummy/presence_manager.cpp
16 dummy/user.cpp
17)
18
19set_target_properties(${PLUGIN_NAME} PROPERTIES VERSION ${SO_VERSION} SOVERSION ${SO_VERSION_MAJOR})
20set (PLUGIN_LINK_LIBRARIES
21 ${MESSAGING_FW_LIBRARIES}
22 Qt5::Core
23 Qt5::DBus
24 ${ACCOUNTS_LDFLAGS}
25 ${ZLIB_LIBRARIES}
26 ${GLog_LIBRARY}
27 ${Boost_LIBRARIES}
28 ${PROCESS_CPP_LDFLAGS}
29 ${CPPNETLIB_LIBRARIES}
30 -lpthread
31)
32
33if(IS_MF_BUILD)
34 set (PLUGIN_LINK_LIBRARIES ${PLUGIN_LINK_LIBRARIES} messaging-framework)
35endif()
36
37target_link_libraries(${PLUGIN_NAME}
38 ${PLUGIN_LINK_LIBRARIES}
39)
40
41install(
42 TARGETS ${PLUGIN_NAME}
43 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/messaging-framework)
044
=== added directory 'examples/mfw-plugin-dummy/src/dummy'
=== added file 'examples/mfw-plugin-dummy/src/dummy/chat.cpp'
--- examples/mfw-plugin-dummy/src/dummy/chat.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/chat.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,30 @@
1#include <dummy/chat.h>
2
3#include <glog/logging.h>
4
5dummy::Chat::Chat(const std::shared_ptr<messaging::Chat::Observer>& observer)
6 : messaging::Chat{observer}
7{
8}
9
10dummy::Chat::~Chat()
11{
12}
13
14
15std::string dummy::Chat::download_file(std::string alias)
16{
17}
18
19void dummy::Chat::mark_message_as_delivered(const std::string &alias, uint session_id)
20{
21}
22
23void dummy::Chat::mark_message_as_read(const std::string &alias, uint session_id)
24{
25}
26
27void dummy::Chat::handle_incoming_message(const messaging::Message& message)
28{
29 announce_message_received(message);
30}
031
=== added file 'examples/mfw-plugin-dummy/src/dummy/connection.cpp'
--- examples/mfw-plugin-dummy/src/dummy/connection.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/connection.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,132 @@
1#include <dummy/connection.h>
2#include <dummy/connector.h>
3#include <dummy/group_manager.h>
4#include <dummy/group_chat.h>
5
6#include <glog/logging.h>
7
8#include <messaging/parameter.h>
9#include <messaging/group.h>
10
11using namespace std;
12
13dummy::Connection::Connection(const std::shared_ptr<messaging::Connection::Observer>& connection_observer,
14 const std::shared_ptr<messaging::Messenger::Observer>& messenger_observer,
15 const std::shared_ptr<messaging::PresenceManager::Observer>& presence_observer,
16 const messaging::Dictionary<std::string, messaging::Variant>& dict,
17 Connector *connector)
18 : messaging::Connection{connection_observer}
19 , connector_{connector}
20 , presence_manager_(PresenceManager::create(presence_observer, connector))
21 , messenger_observer_(messenger_observer)
22{
23 messaging::Parameter account_param{"account", "s", messaging::Parameter::Flags::required|messaging::Parameter::Flags::required_for_registration};
24 messaging::Parameter password_param{"password", "s", messaging::Parameter::Flags::secret};
25
26 if (account_param.can_extract_from(dict))
27 {
28 account = account_param.extract_from(dict).as_string();
29 if (account.empty())
30 {
31 throw std::runtime_error{"account could not be found"};
32 }
33 }
34 else
35 {
36 throw std::runtime_error{"account could not be found"};
37 }
38
39 if (password_param.can_extract_from(dict))
40 {
41 password = password_param.extract_from(dict).as_string();
42 }
43}
44
45dummy::Connection::~Connection()
46{
47
48}
49
50std::string dummy::Connection::self_identifier()
51{
52 return account;
53}
54
55shared_ptr<messaging::PresenceManager> dummy::Connection::presence_manager()
56{
57 return presence_manager_;
58}
59
60shared_ptr<messaging::Messenger> dummy::Connection::messenger()
61{
62 return messenger_;
63}
64
65std::shared_ptr<messaging::GroupStarter> dummy::Connection::group_starter()
66{
67 return group_starter_;
68}
69
70void dummy::Connection::connect()
71{
72 LOG(INFO) << this << __PRETTY_FUNCTION__;
73
74 // initiate other components
75 messenger_ = Messenger::create(messenger_observer_, shared_from_this());
76 group_starter_ = dummy::GroupStarter::create(messenger_);
77
78 // Do something here to actually connect the account
79
80 set_status(Status::connecting, StatusChangedReason::requested);
81}
82
83void dummy::Connection::disconnect(messaging::Connection::StatusChangedReason reason)
84{
85 LOG(INFO) << this << __PRETTY_FUNCTION__;
86 try
87 {
88 set_status(Status::disconnected, reason);
89 }
90 catch (const std::runtime_error &e)
91 {
92 LOG(ERROR) << "disconnect failed: " << e.what();
93 }
94}
95
96void dummy::Connection::set_status(Status new_status, StatusChangedReason reason)
97{
98 try
99 {
100 announce_status_changed(new_status, reason);
101
102 switch (new_status)
103 {
104 case Status::connected:
105 break;
106 case Status::connecting:
107 break;
108 case Status::disconnected:
109 if (connector_) {
110 connector_->release_connection(shared_from_this());
111 }
112 break;
113 default:
114 break;
115 }
116 }
117 catch (const std::runtime_error &e)
118 {
119 LOG(ERROR) << "set_status failed: " << e.what();
120 }
121}
122
123std::string dummy::Connection::normalize_identifier(const std::string &id)
124{
125 // dummy plugin does not require normalization
126 return id;
127}
128
129bool dummy::Connection::is_valid_identifier(const std::string &id)
130{
131 return !id.empty();
132}
0133
=== added file 'examples/mfw-plugin-dummy/src/dummy/connector.cpp'
--- examples/mfw-plugin-dummy/src/dummy/connector.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/connector.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,95 @@
1#include <dummy/connector.h>
2#include <dummy/connection.h>
3
4#include <messaging/enumerator.h>
5#include <messaging/parameter.h>
6#include <messaging/plugin.h>
7
8#include <messaging/boost/variant.h>
9
10#include <glog/logging.h>
11
12std::shared_ptr<dummy::Connector> dummy::Connector::create()
13{
14 return std::shared_ptr<Connector>(new Connector());
15}
16
17dummy::Connector::Connector() :
18 params_enum_{
19 std::vector<messaging::Parameter>{messaging::Parameter{"account", "s", messaging::Parameter::Flags::required|messaging::Parameter::Flags::required_for_registration},
20 messaging::Parameter{"password", "s", messaging::Parameter::Flags::secret}}}
21{
22 mutable_instance() = this;
23}
24
25dummy::Connector::~Connector()
26{
27 mutable_instance() = nullptr;
28}
29
30void dummy::Connector::run()
31{
32 LOG(INFO) << "dummy::Connector::run";
33}
34
35void dummy::Connector::stop()
36{
37 LOG(INFO) << "dummy::Connector::stop";
38}
39
40std::shared_ptr<messaging::Connection> dummy::Connector::request_connection(const std::shared_ptr<messaging::Connection::Observer>& connection_observer,
41 const std::shared_ptr<messaging::Messenger::Observer>& messenger_observer,
42 const std::shared_ptr<messaging::PresenceManager::Observer>& presence_observer,
43 const messaging::Dictionary<std::string, messaging::Variant>& dict)
44{
45 auto connection = std::make_shared<dummy::Connection>(connection_observer,
46 messenger_observer,
47 presence_observer,
48 dict,
49 this);
50 connections_.insert(connection);
51 return connection;
52}
53
54void dummy::Connector::release_connection(const std::weak_ptr<Connection>& connection)
55{
56 auto it = connections_.find(connection);
57 if (it != connections_.end())
58 {
59 connections_.erase(it);
60 }
61}
62
63const messaging::Enumerator<messaging::Parameter>& dummy::Connector::parameters() const
64{
65 return params_enum_;
66}
67
68bool dummy::Connector::network_monitor_enabled()
69{
70 return false;
71}
72
73dummy::Connector*& dummy::Connector::mutable_instance()
74{
75 static Connector* instance{nullptr};
76 return instance;
77}
78
79dummy::Connector* dummy::Connector::instance()
80{
81 return mutable_instance();
82}
83
84// Integrate with the messaging fw plugin runtime.
85messaging::Connector* MESSAGING_FW_CREATE_FUNCTION()
86{
87 static auto instance = dummy::Connector::create();
88 return instance.get();
89}
90
91void MESSAGING_FW_DESTROY_FUNCTION(messaging::Connector*)
92{
93 // Empty on purpose.
94}
95
096
=== added file 'examples/mfw-plugin-dummy/src/dummy/contact_chat.cpp'
--- examples/mfw-plugin-dummy/src/dummy/contact_chat.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/contact_chat.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,58 @@
1#include <dummy/contact_chat.h>
2
3#include <messaging/message.h>
4#include <messaging/recipient.h>
5
6#include <glog/logging.h>
7
8using namespace std;
9
10shared_ptr<dummy::ContactChat> dummy::ContactChat::create(const User& user,
11 const shared_ptr<messaging::Chat::Observer>& observer)
12{
13 shared_ptr<dummy::ContactChat> chat(new dummy::ContactChat{user, observer});
14 return chat;
15}
16
17shared_ptr<dummy::ContactChat> dummy::ContactChat::create(const messaging::User::shared_ptr& user,
18 const shared_ptr<messaging::Chat::Observer>& observer)
19{
20 shared_ptr<dummy::ContactChat> chat(new dummy::ContactChat{user, observer});
21 return chat;
22}
23
24dummy::ContactChat::ContactChat(const User& user,
25 const shared_ptr<messaging::Chat::Observer>& observer)
26 : Chat{observer}
27 , recipient(user)
28{
29}
30
31dummy::ContactChat::ContactChat(const messaging::User::shared_ptr& user,
32 const shared_ptr<messaging::Chat::Observer>& observer)
33 : ContactChat{User::from_recipient(user), observer}
34{
35}
36
37void dummy::ContactChat::mark_message_as_read(const string &alias)
38{
39 // Not supported on DUMMY
40}
41
42void dummy::ContactChat::start_typing()
43{
44 // Typing signal not supported on DUMMY
45}
46
47void dummy::ContactChat::end_typing()
48{
49 // Typing signal not supported on DUMMY
50}
51
52string dummy::ContactChat::send_message(const messaging::Message& message)
53{
54 // this method is called when the ui sends a message to any user or group
55 return string();
56}
57
58
059
=== added file 'examples/mfw-plugin-dummy/src/dummy/group_chat.cpp'
--- examples/mfw-plugin-dummy/src/dummy/group_chat.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/group_chat.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,50 @@
1#include <dummy/group_chat.h>
2#include <dummy/group_manager.h>
3
4#include <messaging/message.h>
5#include <messaging/group.h>
6#include <messaging/recipient.h>
7
8#include <glog/logging.h>
9
10std::shared_ptr<dummy::GroupChat> dummy::GroupChat::create(const std::shared_ptr<messaging::Group> &group,
11 const std::shared_ptr<messaging::Chat::Observer>& observer)
12{
13 return std::shared_ptr<dummy::GroupChat>(new dummy::GroupChat{group, observer});
14}
15
16dummy::GroupChat::GroupChat(const std::shared_ptr<messaging::Group> &group,
17 const std::shared_ptr<messaging::Chat::Observer>& observer)
18 : Chat{observer}
19 , channel_id(group->id())
20{
21}
22
23std::string dummy::GroupChat::send_message(const messaging::Message& message)
24{
25 // a message is being sent to this group
26 return std::string();
27}
28
29void dummy::GroupChat::mark_message_as_delivered(const std::string &message_token)
30{
31 LOG(INFO) << __PRETTY_FUNCTION__ << " token:" << message_token;
32}
33
34void dummy::GroupChat::mark_message_as_read(const std::string &alias)
35{
36}
37
38void dummy::GroupChat::start_typing()
39{
40}
41
42void dummy::GroupChat::end_typing()
43{
44}
45
46std::string dummy::GroupChat::id()
47{
48 return channel_id;
49}
50
051
=== added file 'examples/mfw-plugin-dummy/src/dummy/group_manager.cpp'
--- examples/mfw-plugin-dummy/src/dummy/group_manager.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/group_manager.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,114 @@
1#include <dummy/group_manager.h>
2
3#include <dummy/messenger.h>
4#include <dummy/group_chat.h>
5#include <dummy/connection.h>
6
7
8#include <messaging/group.h>
9#include <messaging/user.h>
10
11#include <glog/logging.h>
12
13
14std::shared_ptr<dummy::GroupManager> dummy::GroupManager::create(const std::shared_ptr<messaging::Group>& group,
15 const std::shared_ptr<Messenger>& messenger)
16{
17 return std::shared_ptr<dummy::GroupManager>(new dummy::GroupManager{group, messenger});
18}
19
20dummy::GroupManager::GroupManager(const std::shared_ptr<messaging::Group>& group,
21 const std::shared_ptr<Messenger>& messenger)
22 : messaging::GroupManager{}
23 , messenger_{messenger}
24 , id(group->id())
25 , creator(group->creator()->id())
26{
27}
28
29dummy::GroupManager::~GroupManager()
30{
31}
32
33void dummy::GroupManager::on_plugged(const std::weak_ptr<messaging::HasInterfaces> &where)
34{
35 auto sp = where.lock();
36 if (sp) {
37 chat_ = std::dynamic_pointer_cast<dummy::GroupChat>(sp);
38 }
39}
40
41std::string dummy::GroupManager::group_id()
42{
43 return id;
44}
45
46std::string dummy::GroupManager::group_title()
47{
48 return id;
49}
50
51std::string dummy::GroupManager::group_subject()
52{
53 return std::string{};
54}
55
56std::shared_ptr<messaging::Member> dummy::GroupManager::group_creator()
57{
58 return std::make_shared<messaging::Member>(creator);
59}
60
61std::set<std::string> dummy::GroupManager::group_admins()
62{
63 std::set<std::string> admins;
64
65 return admins;
66}
67
68messaging::Members dummy::GroupManager::members()
69{
70 return participants;
71}
72
73void dummy::GroupManager::set_observer(const std::shared_ptr<Observer> &observer)
74{
75 messaging::GroupManager::set_observer(observer);
76 announce_group_permissions_changed(messaging::GroupManager::permissions());
77}
78
79void dummy::GroupManager::change_group_title(const std::string &new_title)
80{
81}
82
83void dummy::GroupManager::change_group_subject(const std::string &new_subject)
84{
85
86}
87
88void dummy::GroupManager::add_members(const messaging::Members &members)
89{
90}
91
92void dummy::GroupManager::remove_members(const messaging::Members &members)
93{
94 for (auto member : members) {
95 if (member->id() == messenger_.lock()->connection->self_identifier()) {
96 leave_group();
97 }
98 }
99}
100
101void dummy::GroupManager::leave_group()
102{
103}
104
105void dummy::GroupManager::dissolve_group()
106{
107 // not supported on dummy
108}
109
110bool dummy::GroupManager::persistent()
111{
112 return false;
113}
114
0115
=== added file 'examples/mfw-plugin-dummy/src/dummy/group_starter.cpp'
--- examples/mfw-plugin-dummy/src/dummy/group_starter.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/group_starter.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,85 @@
1#include <messaging/group.h>
2
3#include <dummy/group_starter.h>
4#include <dummy/group_manager.h>
5#include <dummy/messenger.h>
6
7#include <glog/logging.h>
8
9dummy::GroupStarter::GroupStarter(const std::shared_ptr<dummy::Messenger>& messenger)
10 : messaging::GroupStarter()
11 , messenger_{messenger}
12{
13}
14
15std::shared_ptr<dummy::GroupStarter> dummy::GroupStarter::create(const std::shared_ptr<dummy::Messenger>& messenger)
16{
17 std::shared_ptr<GroupStarter> group_starter(new GroupStarter{messenger});
18 return group_starter;
19}
20
21std::shared_ptr<messaging::GroupManager> dummy::GroupStarter::create_group(const std::shared_ptr<messaging::Group> &group)
22{
23 auto group_manager = dummy::GroupManager::create(group, messenger_.lock());
24 group_managers_[group->id()] = group_manager;
25
26 return group_manager;
27}
28
29std::shared_ptr<messaging::GroupManager> dummy::GroupStarter::accept_group(const std::shared_ptr<messaging::Group> &group)
30{
31 LOG(INFO) << __PRETTY_FUNCTION__ << " ,group_chat_id:" << group->id();
32
33 std::string group_chat_id = group->id();
34
35 if (group_chat_id.empty())
36 {
37 throw std::runtime_error{"Cannot accept an invitation with empty chat id"};
38 }
39
40 auto it = group_managers_.find(group_chat_id);
41 if (it != group_managers_.end())
42 {
43 return it->second;
44 }
45
46 auto group_manager = dummy::GroupManager::create(group, messenger_.lock());
47 group_managers_[group->id()] = group_manager;
48 return group_manager;
49}
50
51std::shared_ptr<messaging::GroupManager> dummy::GroupStarter::rejoin_group(const std::shared_ptr<messaging::Group> &group)
52{
53 LOG(INFO) << __PRETTY_FUNCTION__ << " group_chat_id:" << group->id();
54 std::string group_chat_id = group->id();
55 if (group_chat_id.empty())
56 {
57 throw std::runtime_error{"Cannot rejoin with empty chat id"};
58 }
59
60 auto it = group_managers_.find(group_chat_id);
61 if (it != group_managers_.end())
62 {
63 return it->second;
64 }
65
66 auto group_manager = dummy::GroupManager::create(group, messenger_.lock());
67 group_managers_[group->id()] = group_manager;
68
69 return group_manager;
70}
71
72void dummy::GroupStarter::reject_group(const std::shared_ptr<messaging::Group> &group)
73{
74 LOG(INFO) << __PRETTY_FUNCTION__ << " ,group_chat_id:" << group->id();
75}
76
77std::shared_ptr<messaging::Broadcast> dummy::GroupStarter::create_broadcast(const messaging::Members& recipients)
78{
79
80}
81
82std::map<std::string, std::shared_ptr<dummy::GroupManager>> dummy::GroupStarter::group_managers()
83{
84 return group_managers_;
85}
086
=== added file 'examples/mfw-plugin-dummy/src/dummy/messenger.cpp'
--- examples/mfw-plugin-dummy/src/dummy/messenger.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/messenger.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,71 @@
1#include <dummy/messenger.h>
2#include <dummy/group_chat.h>
3#include <dummy/contact_chat.h>
4#include <dummy/group_manager.h>
5#include <dummy/connection.h>
6
7#include <messaging/group.h>
8#include <messaging/user.h>
9#include <messaging/variant.h>
10
11#include <glog/logging.h>
12
13using namespace std;
14
15dummy::Messenger::Messenger(const std::shared_ptr<messaging::Messenger::Observer>& observer, const std::shared_ptr<dummy::Connection> &_connection)
16 : messaging::Messenger{observer}
17 , connection(_connection)
18{
19}
20
21std::shared_ptr<dummy::Messenger> dummy::Messenger::create(const std::shared_ptr<messaging::Messenger::Observer>& observer, const std::shared_ptr<dummy::Connection> &connection)
22{
23 std::shared_ptr<Messenger> messenger(new Messenger{observer, connection});
24 return messenger;
25}
26
27std::shared_ptr<messaging::Chat> dummy::Messenger::create_chat_with(const messaging::Recipient::shared_ptr& recipient,
28 const std::shared_ptr<messaging::Chat::Observer>& observer)
29{
30 switch (recipient->type())
31 {
32 case messaging::RecipientType::user:
33 LOG(INFO) << "Creating user chat" << recipient->id();
34 return dummy::ContactChat::create(std::dynamic_pointer_cast<messaging::User>(recipient), observer);
35 case messaging::RecipientType::group:
36 LOG(INFO) << "Creating group chat" << recipient->id();
37 return dummy::GroupChat::create(std::dynamic_pointer_cast<messaging::Group>(recipient), observer);
38 case messaging::RecipientType::broadcast:
39 LOG(ERROR) << "Broadcast chat not supported on DUMMY";
40 break;
41 }
42 return std::shared_ptr<messaging::Chat>();
43}
44
45void dummy::Messenger::send_delivery_notification(const std::shared_ptr<dummy::Message>& message)
46{
47
48}
49
50std::shared_ptr<dummy::GroupManager> dummy::Messenger::get_group_manager(const std::string &group_chat_id)
51{
52 auto chat = get_chat(group_chat_id);
53 if (not chat) {
54 return nullptr;
55 }
56
57 auto group_chat = dynamic_pointer_cast<dummy::GroupChat>(chat);
58 auto group_manager = group_chat->interface<messaging::GroupManager>();
59
60 if (not group_manager) {
61 LOG(ERROR) << "Could not find a valid group manager plugged to chat " << group_chat_id;
62 return nullptr;
63 }
64
65 return std::dynamic_pointer_cast<dummy::GroupManager>(group_manager);
66}
67
68void dummy::Messenger::remove_chat(const std::string &chat_id)
69{
70 chats().erase(chat_id);
71}
072
=== added file 'examples/mfw-plugin-dummy/src/dummy/presence_manager.cpp'
--- examples/mfw-plugin-dummy/src/dummy/presence_manager.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/presence_manager.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,59 @@
1#include <dummy/presence_manager.h>
2#include <dummy/user.h>
3#include <dummy/connector.h>
4
5#include <glog/logging.h>
6
7using namespace std;
8
9dummy::PresenceManager::PresenceManager(
10 const std::shared_ptr<messaging::PresenceManager::Observer>& observer,
11 Connector *connector)
12 : messaging::PresenceManager{observer}
13 , connector_{connector}
14 , statuses_{{"offline", messaging::StatusSpec{
15 messaging::PresenceType::offline,
16 messaging::StatusSpec::Flags::may_set_on_self &
17 messaging::StatusSpec::Flags::can_have_message}},
18 {"available", messaging::StatusSpec{
19 messaging::PresenceType::available,
20 messaging::StatusSpec::Flags::may_set_on_self &
21 messaging::StatusSpec::Flags::can_have_message}},
22 {"unknown", messaging::StatusSpec{
23 messaging::PresenceType::unknown,
24 messaging::StatusSpec::Flags::none}}}
25{
26}
27
28std::shared_ptr<dummy::PresenceManager> dummy::PresenceManager::create(const std::shared_ptr<messaging::PresenceManager::Observer>& observer,
29 Connector* connector)
30{
31 std::shared_ptr<PresenceManager> presence(new PresenceManager{observer, connector});
32 return presence;
33}
34
35messaging::PresenceManager::StatusMap dummy::PresenceManager::get_valid_statuses()
36{
37 return statuses_;
38}
39
40void dummy::PresenceManager::set_self_presence(const std::string&, const std::string&)
41{
42 throw std::logic_error{"Not implemented"};
43}
44
45void dummy::PresenceManager::request_presence(const std::shared_ptr<messaging::Recipient> &recipient)
46{
47
48}
49
50messaging::Presence dummy::PresenceManager::create_presence(const std::string& status, const std::string& status_message)
51{
52 auto it = statuses_.find(status);
53 if (it != statuses_.end())
54 {
55 return messaging::Presence{it->second.type, status, status_message};
56 }
57
58 throw std::logic_error{"Trying to create a presence from a not specified presence status"};
59}
060
=== added file 'examples/mfw-plugin-dummy/src/dummy/user.cpp'
--- examples/mfw-plugin-dummy/src/dummy/user.cpp 1970-01-01 00:00:00 +0000
+++ examples/mfw-plugin-dummy/src/dummy/user.cpp 2017-03-22 21:22:50 +0000
@@ -0,0 +1,14 @@
1#include <dummy/user.h>
2
3#include <messaging/user.h>
4
5dummy::User dummy::User::from_recipient(const std::shared_ptr<messaging::Recipient> &recipient)
6{
7 dummy::User user;
8 user.username = recipient->id();
9 return user;
10}
11
12messaging::Recipient::shared_ptr dummy::User::to_recipient() const
13{
14}

Subscribers

People subscribed via source and target branches

to all changes: