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