xref: /haiku/headers/os/be_apps/NetPositive/NetPositive.h (revision 5d9e40fe9252c8f9c5e5e41594545bfa4419fcc7)
1*5d9e40feSAxel Dörfler /*******************************************************************************
2*5d9e40feSAxel Dörfler /
3*5d9e40feSAxel Dörfler /	File:			NetPositive.h
4*5d9e40feSAxel Dörfler /
5*5d9e40feSAxel Dörfler /   Description:    Defines all public APIs for communicating with NetPositive
6*5d9e40feSAxel Dörfler /
7*5d9e40feSAxel Dörfler /	Copyright 1998-1999, Be Incorporated, All Rights Reserved
8*5d9e40feSAxel Dörfler /
9*5d9e40feSAxel Dörfler *******************************************************************************/
10*5d9e40feSAxel Dörfler 
11*5d9e40feSAxel Dörfler #ifndef	_NETPOSITIVE_H
12*5d9e40feSAxel Dörfler #define	_NETPOSITIVE_H
13*5d9e40feSAxel Dörfler 
14*5d9e40feSAxel Dörfler /*----------------------------------------------------------------*/
15*5d9e40feSAxel Dörfler /*-----  message command constants -------------------------------*/
16*5d9e40feSAxel Dörfler 
17*5d9e40feSAxel Dörfler enum {
18*5d9e40feSAxel Dörfler 	/* Can be sent to the NetPositive application, a window, or a replicant */
19*5d9e40feSAxel Dörfler 	/* view.  Put the URL in a String field named be:url                    */
20*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_OPEN_URL		= 'NPOP',
21*5d9e40feSAxel Dörfler 
22*5d9e40feSAxel Dörfler 	/* Can be sent to a window or replicant view */
23*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_BACK			= 'NPBK',
24*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_FORWARD		= 'NPFW',
25*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_HOME			= 'NPHM',
26*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_RELOAD		= 'NPRL',
27*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_STOP		 	= 'NPST',
28*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_DOWN			= 'NPDN',
29*5d9e40feSAxel Dörfler 	B_NETPOSITIVE_UP			= 'NPUP'
30*5d9e40feSAxel Dörfler };
31*5d9e40feSAxel Dörfler 
32*5d9e40feSAxel Dörfler /*----------------------------------------------------------------*/
33*5d9e40feSAxel Dörfler /*-----  NetPositive-related MIME types --------------------------*/
34*5d9e40feSAxel Dörfler 
35*5d9e40feSAxel Dörfler 	/* The MIME types for the NetPositive application and its bookmark files */
36*5d9e40feSAxel Dörfler #define B_NETPOSITIVE_APP_SIGNATURE  		"application/x-vnd.Be-NPOS"
37*5d9e40feSAxel Dörfler #define B_NETPOSITIVE_BOOKMARK_SIGNATURE 	"application/x-vnd.Be-bookmark"
38*5d9e40feSAxel Dörfler 
39*5d9e40feSAxel Dörfler 	/* To set up your application to receive notification when the user		 */
40*5d9e40feSAxel Dörfler 	/* clicks on a specific type of URL (telnet URL's, for example), see the */
41*5d9e40feSAxel Dörfler 	/* details in TypeConstants.h.  NetPositive will use external handlers	 */
42*5d9e40feSAxel Dörfler 	/* for all URL types except for http, https, file, netpositive, and		 */
43*5d9e40feSAxel Dörfler 	/* javascript, which it always handles internally.  To maintain			 */
44*5d9e40feSAxel Dörfler 	/* compatibility with its previous behavior, if NetPositive does not	 */
45*5d9e40feSAxel Dörfler 	/* find a handler for mailto URL's,	it will instead launch the handler	 */
46*5d9e40feSAxel Dörfler 	/* for "text/x-email".				 									 */
47*5d9e40feSAxel Dörfler 
48*5d9e40feSAxel Dörfler /*----------------------------------------------------------------*/
49*5d9e40feSAxel Dörfler /*----------------------------------------------------------------*/
50*5d9e40feSAxel Dörfler 
51*5d9e40feSAxel Dörfler #endif /* _NETPOSITIVE_H */
52