xref: /haiku/src/apps/pairs/Pairs.cpp (revision 820dca4df6c7bf955c46e8f6521b9408f50b2900)
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 
14 const char* kSignature = "application/x-vnd.Haiku-Pairs";
15 
16 
17 Pairs::Pairs()
18 	:
19 	BApplication(kSignature),
20 	fWindow(NULL)
21 {
22 }
23 
24 
25 Pairs::~Pairs()
26 {
27 }
28 
29 
30 void
31 Pairs::ReadyToRun()
32 {
33 	fWindow = new PairsWindow();
34 	fWindow->Show();
35 }
36 
37 
38 void
39 Pairs::RefsReceived(BMessage* message)
40 {
41 	fWindow->PostMessage(message);
42 }
43 
44 
45 void
46 Pairs::MessageReceived(BMessage* message)
47 {
48 	BApplication::MessageReceived(message);
49 }
50 
51 
52 int
53 main(void)
54 {
55 	Pairs pairs;
56 	pairs.Run();
57 
58 	return 0;
59 }
60