This repository has been archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cee0ce3
commit 31adb69
Showing
1 changed file
with
74 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@startuml | ||
|
||
namespace MellowPlayer.Application { | ||
|
||
interface IUserScript { | ||
path(): QString | ||
name(): QString | ||
setName(QString) | ||
code() : QString | ||
import(QString path) | ||
load(QString path) | ||
} | ||
|
||
class UserScriptBase { | ||
- path_: QString | ||
- name_: QString | ||
# code_: QString | ||
+ path(): QString | ||
+ name(): QString | ||
+ setName(QString): | ||
+ code(): QString | ||
} | ||
|
||
IUserScript <|-- UserScriptBase | ||
|
||
class StreamingService { | ||
- _userScripts: QList<IUserScript*> | ||
+ addUserScript(IUserScript* script) | ||
+ userScripts(): QList<IUserScript> | ||
} | ||
|
||
StreamingService "*" -> IUserScript | ||
|
||
} | ||
|
||
namespace MellowPlayer.Infrastructure { | ||
|
||
class UserScript { | ||
+ import(QString path) | ||
+ load(QString path) | ||
} | ||
|
||
MellowPlayer.Application.UserScriptBase <|-- UserScript | ||
|
||
class StreamingServiceLoader { | ||
+ load() | ||
} | ||
|
||
StreamingServiceLoader .left..> UserScript: <<load>> | ||
StreamingServiceLoader .> MellowPlayer.Application.StreamingService: <<load>> | ||
|
||
} | ||
|
||
namespace MellowPlayer.Presentation { | ||
class UserScriptViewModel { | ||
- _userScript: IUserScript& | ||
+ code(): QString | ||
+ name(): QString | ||
+ setName(QString) | ||
+ path(): QString | ||
} | ||
|
||
class StreamingServiceViewModel { | ||
- _userScripts: ListModel<UserScriptViewModel> | ||
+ userScripts(): ListModel<UserScriptViewModel> | ||
+ addScript(QString path) | ||
+ removeScript(QString name) | ||
} | ||
|
||
UserScriptViewModel --> MellowPlayer.Application.IUserScript | ||
StreamingServiceViewModel "*" -> UserScriptViewModel | ||
} | ||
|
||
@enduml |