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

blogilo

  • sources
  • kde-4.14
  • kdepim
  • blogilo
  • src
main.cpp
Go to the documentation of this file.
1 /*
2  This file is part of Blogilo, A KDE Blogging Client
3 
4  Copyright (C) 2008-2010 Mehrdad Momeny <mehrdad.momeny@gmail.com>
5  Copyright (C) 2008-2010 Golnaz Nilieh <g382nilieh@gmail.com>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License or (at your option) version 3 or any later version
11  accepted by the membership of KDE e.V. (or its successor approved
12  by the membership of KDE e.V.), which shall act as a proxy
13  defined in Section 14 of version 3 of the license.
14 
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, see http://www.gnu.org/licenses/
23 */
24 
25 #include "mainwindow.h"
26 #include <kuniqueapplication.h>
27 #include "global.h"
28 #include "constants.h"
29 
30 
31 #include <kaboutdata.h>
32 #include <kcmdlineargs.h>
33 static const char description[] =
34  I18N_NOOP( "A KDE Blogging Client" );
35 
36 int main( int argc, char *argv[] )
37 {
38  KAboutData about( "blogilo", 0, ki18n( APPNAME ), VERSION, ki18n( description ),
39  KAboutData::License_GPL_V2, ki18n( "Copyright © 2008–2014 Blogilo authors" ),
40  KLocalizedString(), "http://blogilo.gnufolks.org" );
41  about.addAuthor( ki18n( "Mehrdad Momeny" ), ki18n( "Core Developer" ), "mehrdad.momeny@gmail.com" );
42  about.addAuthor( ki18n( "Golnaz Nilieh" ), ki18n( "Core Developer" ), "g382nilieh@gmail.com" );
43  about.addAuthor( ki18n( "Laurent Montel" ), ki18n( "Core Developer" ), "montel@kde.org" );
44  about.addCredit( ki18n( "Roozbeh Shafiee" ), ki18n( "Icon designer" ), "roozbeh@roozbehonline.com");
45  about.addCredit( ki18n( "Sajjad Baroodkoo" ), ki18n( "Icon designer" ), "sajjad@graphit.ir");
46 
47  about.setTranslator( ki18nc("NAME OF TRANSLATORS", "Your names"),
48  ki18nc("EMAIL OF TRANSLATORS", "Your emails"));
49  KCmdLineArgs::init( argc, argv, &about );
50 // KCmdLineOptions options;
51 
52  KUniqueApplication app;
53  global_init();
54  KGlobal::locale()->insertCatalog(QLatin1String("libkblog"));
55  KGlobal::locale()->insertCatalog(QLatin1String("libkxmlrpcclient"));
56  KGlobal::locale()->insertCatalog(QLatin1String("libcomposereditorng"));
57  KGlobal::locale()->insertCatalog(QLatin1String("libpimcommon"));
58  KGlobal::locale()->insertCatalog(QLatin1String("libkgapi"));
59 
60  MainWindow *bilbo = new MainWindow;
61 
62  bilbo->show();
63  int r = app.exec();
64 
65  global_end();
66  return r;
67 }
68 
APPNAME
static const char APPNAME[]
Definition: constants.h:37
constants.h
global.h
VERSION
static const char VERSION[]
Constants.
Definition: constants.h:36
global_init
void global_init()
Definition: global.cpp:31
mainwindow.h
global_end
void global_end()
Definition: global.cpp:37
QLatin1String
description
static const char description[]
Definition: main.cpp:33
main
int main(int argc, char *argv[])
Definition: main.cpp:36
MainWindow
Definition: mainwindow.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

blogilo

Skip menu "blogilo"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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
  • pimprint

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