2 * Copyright 2005-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
7 * Stephan Aßmus <superstippi@gmx.de>
9 * Copyright 1999, Be Incorporated. All Rights Reserved.
10 * This file may be used under the terms of the Be Sample Code License.
16 #include <Application.h>
17 #include <ObjectList.h>
21 #define B_PERSON_MIMETYPE "application/x-person"
22 #define APP_SIG "application/x-vnd.Be-PEPL"
30 M_WINDOW_QUITS
= 'wndq',
31 M_CONFIGURE_ATTRIBUTES
= 'catr'
36 class TPeopleApp
: public BApplication
{
39 virtual ~TPeopleApp();
41 virtual void ArgvReceived(int32
, char**);
42 virtual void MessageReceived(BMessage
*);
43 virtual void RefsReceived(BMessage
*);
44 virtual void ReadyToRun();
47 PersonWindow
* _FindWindow(const entry_ref
&) const;
48 PersonWindow
* _NewWindow(entry_ref
* = NULL
);
49 void _AddAttributes(PersonWindow
* window
) const;
50 void _SavePreferences(BMessage
* message
) const;
63 BObjectList
<Attribute
> fAttributes
;
66 #endif // PEOPLE_APP_H