File indexing completed on 2024-04-28 04:58:54
0001 /* 0002 SPDX-FileCopyrightText: 2008 Urs Wolfer <uwolfer@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include <QApplication> 0008 0009 #include "krdc_debug.h" 0010 #include "vncview.h" 0011 0012 int main(int argc, char *argv[]) 0013 { 0014 QApplication app(argc, argv); 0015 if (QCoreApplication::arguments().count() < 2) { 0016 qCritical(KRDC) 0017 << ("Please define an URL as argument. Example: vnc://:password@server:1\n" 0018 "Optionally, you can define the quality as second argument (1-3, where 1 is the best). Default is 2."); 0019 return 1; 0020 } 0021 VncView vncView(0, QCoreApplication::arguments().at(1)); 0022 vncView.show(); 0023 vncView.start(); 0024 return app.exec(); 0025 }