Skip to content

Commit

Permalink
update cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Reddy committed Jun 10, 2022
1 parent 5639328 commit 2b4003b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OpenWeatherMap-API
7 changes: 7 additions & 0 deletions commandline.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "commandline.h"

CommandLine::CommandLine(QObject *parent)
: QObject{parent}
{

}
18 changes: 18 additions & 0 deletions commandline.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#ifndef COMMANDLINE_H
#define COMMANDLINE_H

#include <QObject>
#include <QDebug>


class CommandLine : public QObject
{
Q_OBJECT
public:
explicit CommandLine(QObject *parent = nullptr);

signals:

};

#endif // COMMANDLINE_H
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ void showWeather( QString city )

w.getSunriseTime( city, country_code );
w.getPressure( city, country_code );
w.getCoordLong( city, country_code );

w.printJsonDataOneCall("50.05", "8.7");

}

int main(int argc, char *argv[])
Expand Down

0 comments on commit 2b4003b

Please sign in to comment.