1/* 2 * Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 6#include <stdlib.h> 7 8#include <Application.h> 9#include <Catalog.h> 10 11#include "Pairs.h" 12#include "PairsWindow.h" 13 14const char* kSignature = "application/x-vnd.Haiku-Pairs"; 15 16 17Pairs::Pairs() 18 : 19 BApplication(kSignature), 20 fWindow(NULL) 21{ 22} 23 24 25Pairs::~Pairs() 26{ 27} 28 29 30void 31Pairs::ReadyToRun() 32{ 33 fWindow = new PairsWindow(); 34 fWindow->Show(); 35} 36 37 38void 39Pairs::RefsReceived(BMessage* message) 40{ 41 fWindow->PostMessage(message); 42} 43 44 45void 46Pairs::MessageReceived(BMessage* message) 47{ 48 BApplication::MessageReceived(message); 49} 50 51 52int 53main(void) 54{ 55 Pairs pairs; 56 pairs.Run(); 57 58 return 0; 59} 60