- /*
- * Copyright 1999 Perforce Software. All rights reserved.
- *
- * This file is part of Perforce - the FAST SCM System.
- */
- // Cmd_Logout.cpp
- #include "stdafx.h"
- #include "p4win.h"
- #include "Cmd_Logout.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- IMPLEMENT_DYNCREATE(CCmd_Logout, CP4Command)
- CCmd_Logout::CCmd_Logout(CGuiClient *client) : CP4Command(client)
- {
- m_ReplyMsg= WM_P4PASSWORD;
- m_TaskName= _T("Logout");
- }
- BOOL CCmd_Logout::Run(BOOL bInvalidating)
- {
- ClearArgs();
- AddArg(_T("logout"));
- if (bInvalidating)
- AddArg(_T("-a"));
- return CP4Command::Run();
- }
- void CCmd_Logout::OnOutputInfo(char level, LPCTSTR data, LPCTSTR msg)
- {
- if(StrStr(data, _T("logged out")))
- TheApp()->StatusAdd( msg, SV_COMPLETION );
- else
- {
- m_ErrorTxt = msg;
- CP4Command::OnOutputInfo(level, data, msg);
- }
- }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19924 | YourUncleBob |
Populate -o //guest/perforce_software/p4win/... //guest/YourUncleBob/p4win/..... |
9 years ago | |
//guest/perforce_software/p4win/main/gui/p4api/Cmd_Logout.cpp | |||||
#1 | 16169 | perforce_software | Move files to follow new path scheme for branches. | 9 years ago | |
//guest/perforce_software/p4win/gui/p4api/Cmd_Logout.cpp | |||||
#1 | 8562 | Matt Attaway | These feet never stop running. Initial commit of the P4Win source code. To the be...st of our knowledge this compiles and runs using the 2013.3 P4 API and VS 2010. Expect a few changes as we refine the build process. Please post any build issues to the forums. « |
11 years ago |