xref: /haiku/src/tests/kits/app/broster/testapps/RecentAppsTestApp.h (revision ff0ed19cd1f66839c93031dd44043d56d944864e)
1 #ifndef RECENT_APPS_TEST_APP_H
2 #define RECENT_APPS_TEST_APP_H
3 
4 #include <Application.h>
5 
6 class RecentAppsTestApp : public BApplication {
7 public:
RecentAppsTestApp(const char * sig)8 	RecentAppsTestApp(const char *sig) : BApplication(sig) {}
9 
ReadyToRun()10 	virtual void ReadyToRun() {
11 		Quit();
12 	}
13 };
14 
15 // App indices, sigs, and filenames:
16 //  0: Qualifying: BEOS:APP_FLAGS == (B_SINGLE_LAUNCH || B_MULTIPLE_LAUNCH || B_EXCLUSIVE_LAUNCH)
17 //  1: Non-qualifying: BEOS:APP_FLAGS &== B_BACKGROUND_APP || B_ARGV_ONLY
18 //  2: Empty: No BEOS:APP_FLAGS attribute
19 //  3: Control: (same as qualifying, but with a different sig to make sure qualifying apps work correctly)
20 enum RecentAppsTestAppId {
21 	kQualifyingApp = 0,
22 	kNonQualifyingApp,
23 	kEmptyApp,
24 	kControlApp,
25 };
26 extern const char *kRecentAppsTestAppSigs[];
27 extern const char *kRecentAppsTestAppFilenames[];
28 
29 
30 #endif
31