1 /* 2 * Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com. 3 * Copyright 2014 Haiku, Inc. All rights reserved. 4 * 5 * Distributed under the terms of the MIT License. 6 * 7 * Authors: 8 * Ralf Schülke, ralf.schuelke@googlemail.com 9 * John Scipione, jscipione@gmail.com 10 */ 11 #ifndef PAIRS_H 12 #define PAIRS_H 13 14 15 #include <map> 16 17 #include <Application.h> 18 19 20 extern const char* kSignature; 21 22 23 struct vector_icon { 24 uint8* data; 25 size_t size; 26 }; 27 28 29 class BBitmap; 30 class BMessage; 31 class PairsWindow; 32 33 34 typedef std::map<size_t, vector_icon*> IconMap; 35 36 37 class Pairs : public BApplication { 38 public: 39 Pairs(); 40 virtual ~Pairs(); 41 42 virtual void ReadyToRun(); 43 virtual void RefsReceived(BMessage* message); 44 virtual void MessageReceived(BMessage* message); 45 virtual bool QuitRequested(); 46 47 IconMap GetIconMap() const { return fIconMap; }; 48 49 private: 50 void _GetVectorIcons(); 51 52 PairsWindow* fWindow; 53 IconMap fIconMap; 54 }; 55 56 57 #endif // PAIRS_H 58