blob: 9f21a9309af5be9f841e9a1050ccc3b8b6382d30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/**
* @File stdlogicagent.h
*
* @Author Lukas Zeller (luz@synthesis.ch)
*
* @brief TStdLogicAgent
* Agent (=server or client session) for standard database logic implementations, see @ref TStdLogicDS
*
* Copyright (c) 2001-2009 by Synthesis AG (www.synthesis.ch)
*
* @Date 2005-09-23 : luz : created from custdbagent
*/
/*
*/
#ifndef STDLOGICAGENT_H
#define STDLOGICAGENT_H
// includes
#include "sysync.h"
#include "syncagent.h"
#include "localengineds.h"
using namespace sysync;
namespace sysync {
class TStdLogicAgent:
public TSyncAgent
{
typedef TSyncAgent inherited;
public:
TStdLogicAgent(TSyncAppBase *aAppBaseP, TSyncSessionHandle *aSessionHandleP, cAppCharP aSessionID);
virtual ~TStdLogicAgent();
virtual void TerminateSession(void); // Terminate session, like destructor, but without actually destructing object itself
virtual void ResetSession(void); // Resets session (but unlike TerminateSession, session might be re-used)
void InternalResetSession(void); // static implementation for calling through virtual destructor and virtual ResetSession();
// user authentication
#ifndef SYSYNC_CLIENT
// - server-only build should implement it, so we make it abstract here again (altough there is
// an implementation for simpleauth in session.
virtual bool SessionLogin(const char *aUserName, const char *aAuthString, TAuthSecretTypes aAuthStringType, const char *aDeviceID) = 0;
#endif // not SYSYNC_CLIENT
}; // TStdLogicAgent
} // namespace sysync
#endif // STDLOGICAGENT_H
// eof
|