• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdenewstuff
 

tdenewstuff

  • tdenewstuff
tdehotnewstuff.cpp
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#include <tdeapplication.h>
22#include <kdebug.h>
23#include <tdelocale.h>
24#include <tdecmdlineargs.h>
25#include <tdeaboutdata.h>
26
27#include "downloaddialog.h"
28
29static const TDECmdLineOptions op[] =
30{
31 {"type <type>", I18N_NOOP("Display only media of this type"), 0},
32 {"+[providerlist]", I18N_NOOP("Provider list to use"), 0},
33 TDECmdLineLastOption
34};
35
36int main(int argc, char **argv)
37{
38 TDEAboutData about("tdehotnewstuff", "TDEHotNewStuff", "0.2");
39 TDECmdLineArgs *args;
40
41 TDECmdLineArgs::init(argc, argv, &about);
42 TDECmdLineArgs::addCmdLineOptions(op);
43 args = TDECmdLineArgs::parsedArgs();
44
45 TDEApplication i;
46
47 KNS::DownloadDialog d;
48 if(args->isSet("type")) d.setType(args->getOption("type"));
49 if(args->count() == 1) d.setProviderList(args->arg(0));
50 d.load();
51 d.exec();
52
53 return 0;
54}
55
KNS::DownloadDialog
Common download dialog for data browsing and installation.
Definition: downloaddialog.h:58
KNS::DownloadDialog::setType
void setType(TQString type)
Restricts the display of available data to a certain data type.
Definition: downloaddialog.cpp:971
KNS::DownloadDialog::setProviderList
void setProviderList(const TQString &providerList)
Explicitly uses this provider list instead of the one read from the application configuration.
Definition: downloaddialog.cpp:976
KNS::DownloadDialog::load
void load()
Fetches descriptions of all available data, optionally considering a previously set type.
Definition: downloaddialog.cpp:179

tdenewstuff

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

tdenewstuff

Skip menu "tdenewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdenewstuff by doxygen 1.9.4
This website is maintained by Timothy Pearson.