repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / pairs / Pairs.h
blob81b5583d8ac48e73f643f2db43904e9ed9fc66a0
1 /*
2 * Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com.
3 * Copyright 2014 Haiku, Inc. All rights reserved.
5 * Distributed under the terms of the MIT License.
7 * Authors:
8 * Ralf Schülke, ralf.schuelke@googlemail.com
9 * John Scipione, jscipione@gmail.com
11 #ifndef PAIRS_H
12 #define PAIRS_H
15 #include <map>
17 #include <Application.h>
20 extern const char* kSignature;
23 struct vector_icon {
24 uint8* data;
25 size_t size;
29 class BBitmap;
30 class BMessage;
31 class PairsWindow;
34 typedef std::map<size_t, vector_icon*> IconMap;
37 class Pairs : public BApplication {
38 public:
39 Pairs();
40 virtual ~Pairs();
42 virtual void ReadyToRun();
43 virtual void RefsReceived(BMessage* message);
44 virtual void MessageReceived(BMessage* message);
45 virtual bool QuitRequested();
47 IconMap GetIconMap() const { return fIconMap; };
49 private:
50 void _GetVectorIcons();
52 PairsWindow* fWindow;
53 IconMap fIconMap;
57 #endif // PAIRS_H