P4User.h. #1

  • //
  • guest/
  • YourUncleBob/
  • p4win/
  • main/
  • gui/
  • P4User.h.
  • View
  • Commits
  • Open Download .zip Download (874 B)
//
// Copyright 1997 Nicholas J. Irias.  All rights reserved.
//
//


// P4User.h

#ifndef __P4USER__
#define __P4USER__

// Class CP4User - a simple wrapper to parse and store info returned by 'P4 users'

class CP4User : public CObject
{
public:
	CP4User();
	DECLARE_DYNCREATE(CP4User)
	
protected:
	CString m_UserName;
	CString m_Email;
	CString m_FullName;
	CString m_LastAccessDate;
	
	BOOL m_Initialized;
	
public:
	void Create(LPCTSTR name, LPCTSTR email, LPCTSTR fullname, LPCTSTR accessdate);
	BOOL Create(LPCTSTR userRow);

	LPCTSTR GetUserName() const {ASSERT(m_Initialized); return m_UserName; }
	LPCTSTR GetEmail() const {ASSERT(m_Initialized); return m_Email; }
	LPCTSTR GetFullName() const {ASSERT(m_Initialized); return m_FullName; }
	LPCTSTR GetLastAccess() const {ASSERT(m_Initialized); return m_LastAccessDate; }
		
	~CP4User();

};

#endif //__P4USER__


# Change User Description Committed
#1 19924 YourUncleBob Populate -o //guest/perforce_software/p4win/...
//guest/YourUncleBob/p4win/.....
//guest/perforce_software/p4win/main/gui/P4User.h
#1 16169 perforce_software Move files to follow new path scheme for branches.
//guest/perforce_software/p4win/gui/P4User.h
#1 8562 Matt Attaway These feet never stop running.

Initial commit of the P4Win source code.  To the best 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.