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

« back to all changes in this revision

Viewing changes to newsbeuter.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 <rss.h>
 
4
#include <view.h>
 
5
#include <controller.h>
 
6
#include <cache.h>
 
7
#include <config.h>
 
8
 
 
9
using namespace newsbeuter;
 
10
 
 
11
int main(int argc, char * argv[]) {
 
12
        
 
13
        if (!setlocale(LC_CTYPE,"") || !setlocale(LC_MESSAGES,"")) {
 
14
                std::cerr << "setlocale failed: " << strerror(errno) << std::endl;
 
15
                return 1;       
 
16
        }
 
17
        bindtextdomain (PACKAGE, LOCALEDIR);
 
18
        textdomain (PACKAGE);
 
19
        
 
20
        controller c;
 
21
        view v(&c);
 
22
        c.set_view(&v);
 
23
 
 
24
        c.run(argc,argv);
 
25
 
 
26
        return 0;
 
27
}