From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- nGenEx/WebBrowser.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 nGenEx/WebBrowser.h (limited to 'nGenEx/WebBrowser.h') diff --git a/nGenEx/WebBrowser.h b/nGenEx/WebBrowser.h new file mode 100644 index 0000000..b8a27e1 --- /dev/null +++ b/nGenEx/WebBrowser.h @@ -0,0 +1,46 @@ +/* Project nGenEx + Destroyer Studios LLC + Copyright © 1997-2006. All Rights Reserved. + + SUBSYSTEM: nGenEx.lib + FILE: WebBrowser.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + Helper class to find and launch user's default web browser +*/ + +#ifndef WebBrowser_h +#define WebBrowser_h + +#include "Types.h" +#include "List.h" +#include "Text.h" + +// +--------------------------------------------------------------------+ + +class WebBrowser +{ +public: + static const char* TYPENAME() { return "WebBrowser"; } + + WebBrowser(); + virtual ~WebBrowser(); + + virtual void OpenURL(const char* url); + +protected: + void FindDefaultBrowser(); + void FindOpenCommand(); + + Text browser; + Text command; +}; + +// +--------------------------------------------------------------------+ + +#endif WebBrowser_h + + -- cgit v1.1