#pragma once #include "StdAfx.h" #include "Error_m.h" #include "ClientUser_m.h" #include <vcclr.h> //================================================================ // wrapper for callbacks into into the ClienUser class // // // Implements callbacks to interface the clientapi with the .NET interface //================================================================ __nogc class ClientUserDelegate : public ::ClientUser { private: gcroot<p4dn::ClientUser*> mcu; public: ClientUserDelegate( gcroot<p4dn::ClientUser*> ManagedClientUser ); ~ClientUserDelegate(); void InputData( StrBuf *strbuf, ::Error *e ); void HandleError( ::Error *err ); void Message( ::Error *err ); void OutputError( const_char *errBuf ); void OutputInfo( char level, const_char *data ); void OutputBinary( const_char *data, int length ); void OutputText( const_char *data, int length ); void OutputStat( StrDict *varList ); void Prompt( const StrPtr &msg, StrBuf &rsp, int noEcho, ::Error *e ); void ErrorPause( char *errBuf, ::Error *e ); void Edit( FileSys *f1, ::Error *e ); void Diff( FileSys *f1, FileSys *f2, int doPage, char *diffFlags, ::Error *e ); void Merge( FileSys *base, FileSys *leg1, FileSys *leg2, FileSys *result, ::Error *e ); void Help( const_char *const *help ); FileSys *File( FileSysType type ); void Finished(); };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 5826 | Shawn Hladky | PerforceDotNet is now obsolete | ||
#2 | 5064 | Shawn Hladky |
WIP -- Added ability to parse forms. Added new tester application. ** not ready for human consumption, needs more review and testing. |
||
#1 | 4545 | Shawn Hladky |
Several Fixes: Updated solution to Visual Studio 2003 Implemented InputData Implemented OutPutBinary Changed ClientAPI and Error objects to implement the IDisposable interface to improve Garbage Collection Changed header files so you don't need to add #pragma once to the p4 api headers. Refactored the ClientUserDelagate class Fixed a few minor memory leaks |