Ejemplo n.º 1
0
/******************************************************************************
 * Student()
 * 	This default constructor will create a Student object
 *****************************************************************************/
Student::Student()
{
	setName("");
	setID(0);
	setPhoneNumber(0);
	setAge(0);
	setClassStanding("");
	setGPA(0.0);
}
Ejemplo n.º 2
0
/******************************************************************************
 * Student()
 * 	This constructor will receive the student's name and id and create a
 * 		student object with that info
 *****************************************************************************/
Student::Student(string	studentName,		//The Student's Name
				int		studentId)			//The Student's ID
{
	setName(studentName);
	setID(studentId);
	setPhoneNumber(0);
	setAge(0);
	setClassStanding("");
	setGPA(0.0);
}
Ejemplo n.º 3
0
// Initializes this landmark from the given landmark
void QDeclarativeLandmark::setLandmark(const QLandmark& landmark)
{
    // Elaborate but makes sure appropriate signals are sent
    // (this function is called when landmark updates).
    setPlace(landmark); // viewport, address, coordinate etc.
    setName(landmark.name());
    setPhoneNumber(landmark.phoneNumber());
    setDescription(landmark.description());
    setRadius(landmark.radius());
    setIconSource(landmark.iconUrl());
    setUrl(landmark.url());
    m_landmark = landmark;
}
Ejemplo n.º 4
0
// 9 arg constructor - set all PersonData attributes and CustomerData attributes
CustomerData::CustomerData(string l, string f, string a, string c, string s, string z, string p, int n, bool m)
{
	// set attributes derived from PersonData
	setLastName(l);
	setFirstName(f);
	setAddress(a);
	setCity(c);
	setState(s);
	setZip(z);
	setPhoneNumber(p);

	// set CustomerData attributes
	customerNumber = n;
	mailingList = m;
}
/* C++ */
ArduinoiDigiInterfaceClass::ArduinoiDigiInterfaceClass()
{  
  memset(&_mac, 0, sizeof(_mac));
  memset(&_ip, 0, sizeof(_ip));
  memset(&_deviceId, 0, sizeof(_deviceId));
  memset(&_vendorId, 0, sizeof(_vendorId));
  setServerHost((const char *) IDIGI_DEFAULT_SERVERHOST);
  setDeviceType((const char *) IDIGI_DEFAULT_DEVICETYPE);
  _connectionType = idigi_lan_connection_type;
  _linkSpeed = IDIGI_DEFAULT_LINKSPEED;
  setPhoneNumber((const char *) IDIGI_DEFAULT_PHONENUMBER);
  
  idigi_handle = NULL;
  connected = false;
}
Ejemplo n.º 6
0
/******************************************************************************
 * Student()
 * 	This constructor will receive the student's name, id, phone number, age,
 * 		class standing, gpa and create a student object with that info
 *****************************************************************************/
Student::Student(	string	studentName,		//The Student's Name
					int		studentId,			//The Student's ID
					long long	studentPhoneNum,	//The Student's Phone Number
		   	   	   	int		studentAge,			//The Student's Age
		   	   	   	char	studentGender,		//The Student's Gender
		   	   	   	string	studentClass,		//The Student's Class Standing
		   	   	   	double	studentGPA)			//The Student's GPA
{
	setName(studentName);
	setID(studentId);
	setPhoneNumber(studentPhoneNum);
	setAge(studentAge);
	setGender(studentGender);
	setClassStanding(studentClass);
	setGPA(studentGPA);
}
Ejemplo n.º 7
0
/******************************************************************************
 * MathStudent()
 * 	This copy constructor will read in a Math Student Object, and do a deep
 * 		copy to the math student  object being created
 *****************************************************************************/
MathStudent::MathStudent(const MathStudent &anotherMathStudent)
												//Another Math Student
{
#ifdef TEST
cout << "Copy Constructor is Called" << endl << endl;
#endif
	setName(anotherMathStudent.getName());
	setID(anotherMathStudent.getID());
	setPhoneNumber(anotherMathStudent.getPhoneNumber());
	setAge(anotherMathStudent.getAge());
	setGender(anotherMathStudent.getGender());
	setClassStanding(anotherMathStudent.getClassStanding());
	setGPA(anotherMathStudent.getGPA());
	setZipCode(anotherMathStudent.getZipCode());

	setAddress(anotherMathStudent.address);
	setCity(anotherMathStudent.city);
	setState(anotherMathStudent.state);
}
Ejemplo n.º 8
0
void QtUMFax::init(const QString & faxNumber,const QString & userName,const QString & md5,const QString & contactId,const QString & senderName) {


	setPhoneNumber(faxNumber);
	setContactId(contactId);
	setUsername(userName);
	setRecipient(senderName);
	setUserKey(md5);


	Config & config = ConfigManager::getInstance().getCurrentConfig();
	QString address = QString::fromStdString(config.getSendFaxUrl());
	if(_contactId!=_phoneNumber){
		address = address+QString("?username=%1&userkey=%2&recipient=%3&phonenumber=%4").arg(_userName).arg(_userKey).arg(_recepient).arg(_phoneNumber);
	}else{
		address = address+QString("?username=%1&userkey=%2&phonenumber=%3").arg(_userName).arg(_userKey).arg(_phoneNumber);
	}

	_ui->webView->setUrl(QUrl(address));
}
Ejemplo n.º 9
0
void PatientRecord::setAttributesAndValues(const QMap<QString, QVariant> & attributesAndValues){
    Record::setAttributesAndValues(attributesAndValues);
    QString  n = attributesAndValues.value(QString("Name")).toString();
    QString  p = attributesAndValues.value(QString("PhoneNumber")).toString();
    QString  o = attributesAndValues.value(QString("OHIPNumber")).toString();
    QString  ps = attributesAndValues.value(QString("PrimaryPhysician")).toString();


    bool hf = booleanForString(attributesAndValues.value(QString("HasOverDueFollowUps")).toString());
    bool pf = booleanForString(attributesAndValues.value(QString("HasPendingFollowUps")).toString());
    bool cf = booleanForString(attributesAndValues.value(QString("HasCompletedFollowUps")).toString());


    setName(n);
    setPhoneNumber(p);
    setOHIPNumber(o);
    setPrimaryPhysician(ps);

    setHasOverDueFollowUps(hf);
    setHasPendingFollowUps(pf);
    setHasCompletedFollowUps(cf);
}
Ejemplo n.º 10
0
/******************************************************************************
 * copyFrom()
 * 	This method receive a Math Student Object, then copy the info from that
 * 		math student object to the Math Student Object call the function
 *****************************************************************************/
void MathStudent::copyFrom(MathStudent anotherMathStudent)	//Another Math Student
{
#ifdef TEST
cout << "Copy From(deep copy) is Called" << endl << endl;
#endif
	setName(anotherMathStudent.getName());
	setID(anotherMathStudent.getID());
	setPhoneNumber(anotherMathStudent.getPhoneNumber());
	setAge(anotherMathStudent.getAge());
	setGender(anotherMathStudent.getGender());
	setClassStanding(anotherMathStudent.getClassStanding());
	setGPA(anotherMathStudent.getGPA());
	setZipCode(anotherMathStudent.getZipCode());

	delete[] address;
	delete[] city;
	delete[] state;

	setAddress(anotherMathStudent.address);
	setCity(anotherMathStudent.city);
	setState(anotherMathStudent.state);
}
Ejemplo n.º 11
0
PatientRecord::PatientRecord(QString &n,QString&p, QString&o, QString &pp){
    setName(n);
    setOHIPNumber(o);
    setPhoneNumber(p);
    setPrimaryPhysician(pp);
}