-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added several additional services and moved some components to Contra…
…cts project to make them independent from impl. Added interfaces for some Models (IProjectItem a.e)
- Loading branch information
1 parent
83b9de1
commit b97a25d
Showing
36 changed files
with
648 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
using System; | ||
using BuildVision.UI.Models; | ||
|
||
namespace BuildVision.Contracts | ||
{ | ||
public class BuildErrorRaisedEventArgs : EventArgs | ||
{ | ||
public ErrorLevel ErrorLevel { get; private set; } | ||
public BuildedProject ProjectInfo { get; private set; } | ||
public IProjectItem ProjectInfo { get; private set; } | ||
|
||
public BuildErrorRaisedEventArgs(ErrorLevel errorLevel, BuildedProject projectInfo) | ||
public BuildErrorRaisedEventArgs(ErrorLevel errorLevel, IProjectItem projectInfo) | ||
{ | ||
ErrorLevel = errorLevel; | ||
ProjectInfo = projectInfo; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Windows.Controls; | ||
using BuildVision.Contracts; | ||
|
||
namespace BuildVision.UI.Models | ||
{ | ||
public interface IProjectItem | ||
{ | ||
TimeSpan? BuildElapsedTime { get; } | ||
DateTime? BuildFinishTime { get; set; } | ||
int? BuildOrder { get; set; } | ||
DateTime? BuildStartTime { get; set; } | ||
string CommonType { get; set; } | ||
string Configuration { get; set; } | ||
ErrorsBox ErrorsBox { get; set; } | ||
int ErrorsCount { get; } | ||
string ExtenderNames { get; set; } | ||
string FlavourType { get; set; } | ||
string Framework { get; set; } | ||
string FullName { get; set; } | ||
string FullPath { get; set; } | ||
bool IsBatchBuildProject { get; set; } | ||
string Language { get; set; } | ||
string MainFlavourType { get; set; } | ||
int MessagesCount { get; } | ||
string Name { get; set; } | ||
string OutputType { get; set; } | ||
string Platform { get; set; } | ||
string RootNamespace { get; set; } | ||
string SolutionFolder { get; set; } | ||
ProjectState State { get; set; } | ||
ControlTemplate StateBitmap { get; } | ||
bool Success { get; set; } | ||
string UniqueName { get; set; } | ||
int WarningsCount { get; } | ||
|
||
void RaiseBuildElapsedTimeChanged(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace BuildVision.Exports.Factories | ||
{ | ||
public interface IBuildMessagesFactory | ||
{ | ||
string GetBuildBeginExtraMessage(); | ||
string GetBuildBeginMajorMessage(); | ||
string GetBuildDoneMessage(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using BuildVision.Contracts; | ||
using BuildVision.UI.Contracts; | ||
using BuildVision.UI.Models; | ||
|
||
namespace BuildVision.Exports | ||
{ | ||
public interface IBuildOutputLogger | ||
{ | ||
bool IsProjectUpToDate(IProjectItem projectItem); | ||
|
||
void Attach(); | ||
|
||
event Action<BuildProjectContextEntry, object, ErrorLevel> OnErrorRaised; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/BuildVision.Exports/Providers/IBuildingProjectsProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.ObjectModel; | ||
using BuildVision.UI.Contracts; | ||
using BuildVision.UI.Models; | ||
|
||
namespace BuildVision.Exports.Providers | ||
{ | ||
public interface IBuildingProjectsProvider | ||
{ | ||
ObservableCollection<IProjectItem> GetBuildingProjects(); | ||
void ProjectBuildStarted(IProjectItem projectItem, uint dwAction); | ||
void ProjectBuildFinished(string projectIdentifier, bool succeess, bool canceled); | ||
void ReloadCurrentProjects(); | ||
bool TryGetProjectItem(BuildProjectContextEntry projectEntry, out IProjectItem projectItem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.