~ubuntu-branches/ubuntu/maverick/newsbeuter/maverick

« back to all changes in this revision

Viewing changes to podbeuter.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2007-04-21 19:44:35 UTC
  • Revision ID: james.westby@ubuntu.com-20070421194435-21g6134ws2yvarlt
Tags: upstream-0.3
ImportĀ upstreamĀ versionĀ 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <iostream>
 
2
 
 
3
#include <config.h>
 
4
#include <pb_controller.h>
 
5
#include <pb_view.h>
 
6
#include <errno.h>
 
7
 
 
8
using namespace podbeuter;
 
9
 
 
10
int main(int argc, char * argv[]) {
 
11
 
 
12
        if (!setlocale(LC_CTYPE,"") || !setlocale(LC_MESSAGES,"")) {
 
13
                std::cerr << "setlocale failed: " << strerror(errno) << std::endl;
 
14
                return 1;       
 
15
        }
 
16
        bindtextdomain (PACKAGE, LOCALEDIR);
 
17
        textdomain (PACKAGE);
 
18
 
 
19
        pb_controller c;
 
20
        pb_view v(&c);
 
21
        c.set_view(&v);
 
22
 
 
23
        c.run(argc, argv);
 
24
 
 
25
        return 0;
 
26
}