diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-16 18:22:58 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-16 18:22:58 +0100 |
commit | 3d5aca66b9712758aecb2e80bc5b2fb3df6256a4 (patch) | |
tree | 817e945218dbca029244315f36b960dd288b3cff /Source/Applications/PaperWork | |
parent | 5f87c447bdcb82beacbfb930942fe9995dcdb60f (diff) | |
download | Melon-3d5aca66b9712758aecb2e80bc5b2fb3df6256a4.tar.gz Melon-3d5aca66b9712758aecb2e80bc5b2fb3df6256a4.zip |
New model, object-oriented, for applications
Diffstat (limited to 'Source/Applications/PaperWork')
-rw-r--r-- | Source/Applications/PaperWork/Makefile | 2 | ||||
-rw-r--r-- | Source/Applications/PaperWork/PaperWork.cpp (renamed from Source/Applications/PaperWork/main.cpp) | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/Source/Applications/PaperWork/Makefile b/Source/Applications/PaperWork/Makefile index fe8d564..d3203cf 100644 --- a/Source/Applications/PaperWork/Makefile +++ b/Source/Applications/PaperWork/Makefile @@ -6,7 +6,7 @@ CXXFLAGS = -nostartfiles -nostdlib -ffreestanding -fno-exceptions -fno-rtti -I . LD = ld LDFLAGS = -T ../../Library/Link.ld -L ../../Library -Objects = main.o +Objects = PaperWork.o OutFile = PaperWork all: $(OutFile) diff --git a/Source/Applications/PaperWork/main.cpp b/Source/Applications/PaperWork/PaperWork.cpp index 2fb40df..0d6a821 100644 --- a/Source/Applications/PaperWork/main.cpp +++ b/Source/Applications/PaperWork/PaperWork.cpp @@ -1,9 +1,16 @@ -#include <Binding/Process.class.h> -#include <String.class.h> +#include <App/ShellApp.proto.h> #define DEFAULT_SHELL "/Applications/Shell/Shell.app" -int main(Vector<String> args) { +class PaperWork : public ShellApp { + public: + PaperWork() : ShellApp() {} + int run(); +}; + +APP(PaperWork); + +int PaperWork::run() { String act = "init"; if (args.size() == 2) { if (args[1] == "login") { |