diff options
Diffstat (limited to 'nGenEx/WebBrowser.h')
-rw-r--r-- | nGenEx/WebBrowser.h | 46 |
1 files changed, 46 insertions, 0 deletions
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
+
+
|