• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
main.cpp
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 1999-2005 the KNode authors.
4  See file AUTHORS for details
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  You should have received a copy of the GNU General Public License
11  along with this program; if not, write to the Free Software Foundation,
12  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13 */
14 
15 #include <kaboutdata.h>
16 #include <kcmdlineargs.h>
17 #include <kglobal.h>
18 #include <klocale.h>
19 
20 #include "knapplication.h"
21 #include "resource.h"
22 #include "knode.h"
23 #include "aboutdata.h"
24 #include "knode_options.h"
25 #include "utils/startup.h"
26 
27 using KNode::AboutData;
28 
29 int main(int argc, char* argv[])
30 {
31  AboutData aboutData;
32 
33  KCmdLineArgs::init( argc, argv, &aboutData );
34  KCmdLineArgs::addCmdLineOptions( knode_options() );
35  KUniqueApplication::addCmdLineOptions();
36 
37  if (!KNApplication::start())
38  return 0;
39 
40  KNApplication app;
41 
42  KNode::Utilities::Startup s;
43  s.loadLibrariesIconsAndTranslations();
44  s.updateDataAndConfiguration();
45 
46  return app.exec();
47 }
KNode::Utilities::Startup
A class to deals with start-up/initialization of KNode.
Definition: startup.h:37
KNode::AboutData
Content of the about dialog.
Definition: aboutdata.h:24
knode_options
static KCmdLineOptions knode_options()
KNode's command line options.
Definition: knode_options.h:22
KNode::Utilities::Startup::updateDataAndConfiguration
void updateDataAndConfiguration() const
Updates internal data at startup.
Definition: startup.cpp:56
startup.h
aboutdata.h
resource.h
knode_options.h
knode.h
main
int main(int argc, char *argv[])
Definition: main.cpp:29
knapplication.h
KNApplication
Conversion of old settings and session restoration.
Definition: knapplication.h:21
KNode::Utilities::Startup::loadLibrariesIconsAndTranslations
void loadLibrariesIconsAndTranslations() const
Loads translation catalogs and icons directories for imported libraries.
Definition: startup.cpp:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal