|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 // Connection.cpp: implementation of the CConnection class. |
|
18 // |
|
19 ////////////////////////////////////////////////////////////////////// |
|
20 |
|
21 #include "stdafx.h" |
|
22 #include "Connection.h" |
|
23 #include "ServerManager.h" |
|
24 |
|
25 #ifdef _DEBUG |
|
26 extern BOOL gDoLogging; |
|
27 #define TCDEBUGOPEN() if (gDoLogging) { this->m_DebugLog->WaitForAccess(); } |
|
28 #define TCDEBUGLOGS(s) if (gDoLogging) { sprintf(this->m_DebugLogMsg,"%s", s); this->m_DebugLog->log(this->m_DebugLogMsg); } |
|
29 #define TCDEBUGLOGA1(s, a1) if (gDoLogging) { sprintf(this->m_DebugLogMsg, s, a1); this->m_DebugLog->log(this->m_DebugLogMsg); } |
|
30 #define TCDEBUGLOGA2(s, a1, a2) if (gDoLogging) { sprintf(this->m_DebugLogMsg, s, a1, a2); this->m_DebugLog->log(this->m_DebugLogMsg); } |
|
31 #define TCDEBUGLOGA3(s, a1, a2, a3) if (gDoLogging) { sprintf(this->m_DebugLogMsg, s, a1, a2, a3); this->m_DebugLog->log(this->m_DebugLogMsg); } |
|
32 #define TCDEBUGCLOSE() if (gDoLogging) { this->m_DebugLog->ReleaseAccess(); } |
|
33 #else |
|
34 #define TCDEBUGOPEN() |
|
35 #define TCDEBUGLOGS(s) |
|
36 #define TCDEBUGLOGA1(s, a1) |
|
37 #define TCDEBUGLOGA2(s, a1, a2) |
|
38 #define TCDEBUGLOGA3(s, a1, a2, a3) |
|
39 #define TCDEBUGCLOSE() |
|
40 #endif |
|
41 |
|
42 ////////////////////////////////////////////////////////////////////// |
|
43 // Construction/Destruction |
|
44 ////////////////////////////////////////////////////////////////////// |
|
45 CConnection::CConnection() |
|
46 { |
|
47 } |
|
48 |
|
49 CConnection::CConnection(ConnectData conData, DWORD connectionId) |
|
50 { |
|
51 } |
|
52 |
|
53 CConnection::~CConnection() |
|
54 { |
|
55 } |