#include "stdafx.h" #include "P4BridgeClient.h" #include "P4Connection.h" #ifdef _DEBUG_MEMORY P4Connection::P4Connection(ConnectionManager* conMgr, P4BridgeServer* pServer, int cmdId) : DoublyLinkedListItem((DoublyLinkedList *)conMgr, cmdId), p4base(tP4Connection) #else P4Connection::P4Connection(ConnectionManager* conMgr, P4BridgeServer* pServer, int cmdId) : DoublyLinkedListItem((DoublyLinkedList *)conMgr, cmdId) #endif { clientNeedsInit = 1; ui = NULL; isAlive = 1; } P4Connection::~P4Connection(void) { if (clientNeedsInit == 0) { Error e; this->Final( &e ); clientNeedsInit = 1; } if (ui) { delete ui; } } void P4Connection::cancel_command() { isAlive = 0; } // KeepAlive functionality int P4Connection::IsAlive() { return isAlive; } void P4Connection::Disconnect( void ) { if (clientNeedsInit == 0) { Error e; this->Final( &e ); clientNeedsInit = 1; } } void P4Connection::SetCharset( CharSetApi::CharSet c, CharSetApi::CharSet filec ) { ClientApi::SetCharset(CharSetApi::Name(filec)); SetTrans( CharSetApi::NOCONV, filec, c, CharSetApi::NOCONV ); }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19358 | AnnaTito |
Populate -o //guest/perforce_software/p4connect/... //guest/AnnaTito/dev/p4connect/.... |
||
//guest/perforce_software/p4connect/main/src/P4Bridge/p4bridge/P4Connection.cpp | |||||
#1 | 16209 | Norman Morse | Move entire source tree into "main" branch so workshop code will act correctly. | ||
//guest/perforce_software/p4connect/src/P4Bridge/p4bridge/P4Connection.cpp | |||||
#2 | 12135 | Norman Morse |
Integrate dev branch changes into main. This code is the basiis of the 2.7 BETA release which provides Unity 5 compatibility |
||
#1 | 10940 | Norman Morse |
Inital Workshop release of P4Connect. Released under BSD-2 license |