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