libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / people / PeopleApp.h
blob4adb7377d3b93311fa19d2f18bc34419cc311a2d
1 /*
2 * Copyright 2005-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Robert Polic
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.
12 #ifndef PEOPLE_APP_H
13 #define PEOPLE_APP_H
16 #include <Application.h>
17 #include <ObjectList.h>
18 #include <String.h>
21 #define B_PERSON_MIMETYPE "application/x-person"
22 #define APP_SIG "application/x-vnd.Be-PEPL"
25 class BFile;
27 enum {
28 M_NEW = 'newp',
29 M_SAVE_AS = 'svas',
30 M_WINDOW_QUITS = 'wndq',
31 M_CONFIGURE_ATTRIBUTES = 'catr'
34 class PersonWindow;
36 class TPeopleApp : public BApplication {
37 public:
38 TPeopleApp();
39 virtual ~TPeopleApp();
41 virtual void ArgvReceived(int32, char**);
42 virtual void MessageReceived(BMessage*);
43 virtual void RefsReceived(BMessage*);
44 virtual void ReadyToRun();
46 private:
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;
52 private:
53 BFile* fPrefs;
54 uint32 fWindowCount;
55 BRect fPosition;
57 struct Attribute {
58 BString attribute;
59 int32 width;
60 BString name;
63 BObjectList<Attribute> fAttributes;
66 #endif // PEOPLE_APP_H