Changeset 93ea008 for src/lib


Ignore:
Timestamp:
Sep 22, 2015, 10:01:17 PM (11 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
master
Children:
17ef75d
Parents:
fb602c6
Message:

Command line client is now (nearly) able to register a station

Location:
src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/lib/siweatherstation.cpp

    rfb602c6 r93ea008  
    114114}
    115115
     116
     117bool SiWeatherStation::isValidForRegister() const
     118{
     119        if(_name.isEmpty())
     120                return false;
     121        if(_city.isEmpty())
     122                return false;
     123        if(_eMail.isEmpty())
     124                return false;
     125        if(_type.isEmpty())
     126                return false;
     127        return true;
     128}
     129
    116130void SiWeatherStation::init()
    117131{
  • src/lib/siweatherstation.h

    rfb602c6 r93ea008  
    5151                                void setEMail(const QString &address);
    5252                                QString eMail() const;
     53                               
     54                                bool isValidForRegister() const;
    5355
    5456                        private:
Note: See TracChangeset for help on using the changeset viewer.