using System; using System.Collections.Generic; using System.Text; namespace P4API { internal class P4ResultClientUser : p4dn.ClientUser { private P4Result _P4Result; public P4ResultClientUser(P4Result p4Result) { this._P4Result = p4Result; } public override void Diff(System.IO.FileInfo f1, System.IO.FileInfo f2, int doPage, string diffFlags, p4dn.Error err) { base.Diff(f1, f2, doPage, diffFlags, err); } public override void Edit(System.IO.FileInfo f1, p4dn.Error err) { base.Edit(f1, err); } public override void ErrorPause(string errBuf, p4dn.Error err) { base.ErrorPause(errBuf, err); } public override void Finished() { base.Finished(); } public override void Help(string help) { base.Help(help); } public override void InputData(ref string buff, p4dn.Error err) { base.InputData(ref buff, err); } public override void Merge(System.IO.FileInfo @base, System.IO.FileInfo leg1, System.IO.FileInfo leg2, System.IO.FileInfo result, p4dn.Error err) { base.Merge(@base, leg1, leg2, result, err); } public override void Message(p4dn.Error err) { switch (err.Severity) { case 0: // E_EMPTY (0) | no error break; case 1: // E_INFO (1) | information, not necessarily an error break; case 2: // E_WARN (2) | a minor error occurred break; case 3: // E_FAILED(3) | the command was used incorrectly break; case 4: // E_FATAL (4) | fatal error, the command can't be processed break; default: //TODO throw an error... unknown severity break; } //err.Severity base.Message(err); } public override void OutputBinary(byte[] b) { base.OutputBinary(b); } public override void OutputStat(System.Collections.Specialized.StringDictionary varList) { base.OutputStat(varList); } public override void OutputText(string data) { base.OutputText(data); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#11 | 5830 | Shawn Hladky | P4.Net: reorg to support release branches | ||
#10 | 5798 | Shawn Hladky |
P4.Net... still not ready for beta Added license to all files Added several doc files Misc bugs |
||
#9 | 5774 | Shawn Hladky |
P4.Net. A few bug fixes. Addes first draft of MSBuild custom tasks. |
||
#8 | 5678 | Shawn Hladky |
WIP... more tests. OnPrompt event to recieve input from prompts. |
||
#7 | 5636 | Shawn Hladky |
1. Added test harness framework, and some initial tests 2. Fixed many bugs (oddly enough identified by the unit tests) 3. Fixes so will build 1.1 Framework (and build batch files actually work) 4. Pathetic attempt at documentation |
||
#6 | 5447 | Shawn Hladky | refactor, and added options class | ||
#5 | 5431 | Shawn Hladky |
Refactoring... step 1. |
||
#4 | 5427 | Shawn Hladky | P4.Net -- several fixes and added sample application | ||
#3 | 5411 | Shawn Hladky | WIP -- forms are working now. | ||
#2 | 5373 | Shawn Hladky | P4.Net: Still WIP, but some things starting to work | ||
#1 | 5349 | Shawn Hladky |
Initial check-in for the new API interface. Nothing works yet, but it should compile at least. |