blob: 904958f46c81b065bf50e7704255e1ce8f0ea660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
// SPDX-License-Identifier: BSD-3-Clause
/*!
This example shows QtSoap with a SOAP::Lite web service.
Returns the date of easter in a given year.
*/
#include <QCoreApplication>
#include <QFile>
#include <stdlib.h>
#include "easter.h"
int main(int argc, char **argv)
{
if (argc < 2) {
qDebug("XMethods' interface to Easter Dates with a SOAP::Lite service.");
qDebug("usage: %s <year>", argv[0]);
qDebug(" ");
return 1;
}
QCoreApplication app(argc, argv);
Easter easter(atoi(argv[1]), 0);
return app.exec();
}
|