Ticket #6116: LocaleCatalog.h

File LocaleCatalog.h, 666 bytes (added by Karvjorm, 14 years ago)

A header file for the Singleton LocaleCatalog class

Line 
1/*
2 * Copyright 2010, Jorma Karvonen, karvonen.jorma_at_gmail.com. All rights
3 * reserved. Distributed under the terms of the MIT License.
4 */
5
6#ifndef LOCALECATALOG_H
7#define LOCALECATALOG_H
8
9#include <Catalog.h>
10#include <Locale.h>
11#include <Locker.h>
12#include <Message.h>
13
14class LocaleCatalog
15{
16public:
17 BCatalog fAppCatalog;
18
19 virtual ~LocaleCatalog();
20 virtual bool QuitRequested();
21 virtual void MessageReceived(BMessage* message);
22 static LocaleCatalog* Instance();
23 static void QuitInstance();
24
25private:
26 LocaleCatalog();
27 static LocaleCatalog* s_instance;
28 static BLocker s_instanceLock;
29};
30
31#endif