~renatofilho/ubuntu/vivid/syncevolution/default-syncInterval

« back to all changes in this revision

Viewing changes to src/synthesis/src/syncapps/sysytool/sysytool_dispatch.cpp

  • Committer: Ken VanDine
  • Date: 2014-11-04 19:44:22 UTC
  • mfrom: (1.3.5)
  • Revision ID: ken.vandine@canonical.com-20141104194422-tpalsrkoc1g9y31v
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *  @File     sysytool_dispatch.cpp
 
3
 *
 
4
 *  @Author   Lukas Zeller (luz@plan44.ch)
 
5
 *
 
6
 *  @brief TSySyncToolDispatch
 
7
 *    Pseudo "Dispatcher" for SySyTool (debugging aid tool operating on a server session)
 
8
 *
 
9
 *    Copyright (c) 2001-2011 by Synthesis AG + plan44.ch
 
10
 *
 
11
 *  @Date 2005-12-07 : luz : created from old version
 
12
 */
 
13
 
 
14
 
 
15
// includes
 
16
#include "sysytool.h"
 
17
#include "sysytool_dispatch.h"
 
18
 
 
19
// common includes
 
20
#include "syncappbase.h"
 
21
 
 
22
#ifdef XML2GO_SUPPORT
 
23
  #include "curl.h"
 
24
#endif
 
25
 
 
26
 
 
27
namespace sysync {
 
28
 
 
29
// dispatcher creation function
 
30
TXPTSessionDispatch *newXPTSessionDispatch(void)
 
31
{
 
32
  // create new app-sepcific dispatcher
 
33
  MP_RETURN_NEW(TSySyncToolDispatch,DBG_OBJINST,"TSySyncToolDispatch",TSySyncToolDispatch());
 
34
} // newXPTSessionDispatch
 
35
 
 
36
 
 
37
 
 
38
/*
 
39
 * Implementation of TSySyncToolDispatch
 
40
 */
 
41
 
 
42
/* public TSySyncToolDispatch members */
 
43
 
 
44
 
 
45
TSySyncToolDispatch::TSySyncToolDispatch()
 
46
{
 
47
  // create config root
 
48
  fConfigP=new TXPTServerRootConfig(this);
 
49
  #ifdef XML2GO_SUPPORT
 
50
  // xml2go needs cURL
 
51
  curl_global_init(CURL_GLOBAL_ALL);
 
52
  #endif
 
53
} // TSySyncToolDispatch::TSySyncToolDispatch
 
54
 
 
55
 
 
56
TSySyncToolDispatch::~TSySyncToolDispatch()
 
57
{
 
58
  fDeleting=true; // flag deletion to block calling critical (virtual) methods
 
59
  #ifdef XML2GO_SUPPORT
 
60
  // xml2go needs cURL
 
61
  curl_global_cleanup();
 
62
  #endif
 
63
} // TSySyncToolDispatch::TSySyncToolDispatch
 
64
 
 
65
 
 
66
} // namespace sysync
 
67
 
 
68
/* end of TSySyncToolDispatch implementation */
 
69
 
 
70
// eof