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 20extern const char* kSignature; 21 22 23struct vector_icon { 24 uint8* data; 25 size_t size; 26}; 27 28 29class BBitmap; 30class BMessage; 31class PairsWindow; 32 33 34typedef std::map<size_t, vector_icon*> IconMap; 35 36 37class Pairs : public BApplication { 38public: 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 49private: 50 void _GetVectorIcons(); 51 52 PairsWindow* fWindow; 53 IconMap fIconMap; 54}; 55 56 57#endif // PAIRS_H 58