ip2ccountryinfo.cpp
1 //------------------------------------------------------------------------------
2 // ip2ccountryinfo.cpp
3 //
4 // Copyright (C) 2011 "Zalewa" <zalewapl@gmail.com>
5 //------------------------------------------------------------------------------
6 #include "ip2ccountryinfo.h"
7 
8 IP2CCountryInfo::IP2CCountryInfo()
9 {
10  flag = NULL;
11 }
12 
13 IP2CCountryInfo::IP2CCountryInfo(const QPixmap* flag, QString name)
14 {
15  this->flag = flag;
16  this->name = name;
17 }
18 
19 bool IP2CCountryInfo::isValid() const
20 {
21  return flag != NULL
22  && !flag->isNull()
23  && !name.isEmpty();
24 }