GuiClient.h. #1

  • //
  • guest/
  • YourUncleBob/
  • p4win/
  • main/
  • gui/
  • p4api/
  • GuiClient.h.
  • View
  • Commits
  • Open Download .zip Download (1 KB)
#ifndef __GUICLIENT__
#define __GUICLIENT__

class CGuiClientUser;
class CP4Command;

class CGuiClient : public ClientApi
{
protected:
	CGuiClientUser *m_ui;
    CharString m_aPort;
    CharString m_aClient;
    CharString m_aUser;
    CharString m_aPassword;
public:
    CGuiClient();
    ~CGuiClient();

    void SetPort(LPCTSTR port);
    void SetClient(LPCTSTR client) { m_aClient = CharFromCString(client); ClientApi::SetClient(m_aClient); }
    void SetUser(LPCTSTR user) { m_aUser = CharFromCString(user); ClientApi::SetUser(m_aUser); }
    void SetPassword(LPCTSTR password) { m_aPassword = CharFromCString(password); ClientApi::SetPassword(m_aPassword); }
	void SetTrans();

    void PushCommandPtr(CP4Command *cmd);
    void PopCommandPtr(CP4Command *cmd);

    // wrap ClientApi functions that take clientuser object, supplying our clientuser object
    void		Run( const char *func);
    void		RunTag( const char *func);
    void		WaitTag();


    void UseTaggedProtocol();
    void UseSpecdefsProtocol();

	static CString GetUserStr();
	static CString GetClientStr();
    static bool DefinePort(LPCTSTR port);
    static bool DefineUser(LPCTSTR user);
    static bool DefineClient(LPCTSTR client);
    static bool DefinePassword(LPCTSTR password);
    static bool DefineCharset(LPCTSTR charset);

    void getServerInfo();

} ;

#endif // __GUICLIENT__
# Change User Description Committed
#1 19924 YourUncleBob Populate -o //guest/perforce_software/p4win/...
//guest/YourUncleBob/p4win/.....
//guest/perforce_software/p4win/main/gui/p4api/GuiClient.h
#1 16169 perforce_software Move files to follow new path scheme for branches.
//guest/perforce_software/p4win/gui/p4api/GuiClient.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.