Skip to content

Commit

Permalink
Report variant as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wachter committed Mar 27, 2013
1 parent 10d9736 commit f5f4f69
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rndssucli/rndssucli.cpp
Expand Up @@ -9,6 +9,8 @@

#include <termios.h>

#include <ssudeviceinfo.h>

#include "rndssucli.h"

RndSsuCli::RndSsuCli(): QObject(){
Expand Down Expand Up @@ -97,15 +99,17 @@ void RndSsuCli::optResolve(){

void RndSsuCli::optStatus(){
QTextStream qout(stdout);
SsuDeviceInfo deviceInfo;

/*
* print device information and registration status
*/
qout << "Device registration status: "
<< (ssu.isRegistered() ? "registered" : "not registered") << endl;
qout << "Device family: " << ssu.deviceFamily() << endl;
qout << "Device model: " << ssu.deviceModel() << endl;
qout << "Device UID: " << ssu.deviceUid() << endl;
qout << "Device family: " << deviceInfo.deviceFamily() << endl;
qout << "Device model: " << deviceInfo.deviceModel() << endl;
qout << "Device variant: " << deviceInfo.deviceVariant() << endl;
qout << "Device UID: " << deviceInfo.deviceUid() << endl;

QCoreApplication::exit(0);
}
Expand Down

0 comments on commit f5f4f69

Please sign in to comment.