You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.8 KiB
81 lines
1.8 KiB
/* ============================================================
|
|
* File : cameratype.cpp
|
|
* Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
|
|
* Date : 2003-01-29
|
|
* Description :
|
|
*
|
|
* Copyright 2003 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
|
|
|
|
* This program is free software; you can redistribute it
|
|
* and/or modify it under the terms of the GNU General
|
|
* Public License as published by the Free Software Foundation;
|
|
* either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* ============================================================ */
|
|
|
|
// Local
|
|
#include "cameratype.h"
|
|
|
|
namespace KIPIKameraKlientPlugin
|
|
{
|
|
|
|
CameraType::CameraType() {
|
|
valid_ = false;
|
|
}
|
|
|
|
CameraType::CameraType(const TQString& model, const TQString& port) {
|
|
model_ = model;
|
|
port_ = port;
|
|
valid_ = true;
|
|
}
|
|
|
|
CameraType::~CameraType() {
|
|
}
|
|
|
|
CameraType::CameraType(const CameraType& ctype) {
|
|
model_ = ctype.model_;
|
|
port_ = ctype.port_;
|
|
valid_ = ctype.valid_;
|
|
}
|
|
|
|
CameraType& CameraType::operator=(const CameraType& ctype) {
|
|
if (this != &ctype) {
|
|
model_ = ctype.model_;
|
|
port_ = ctype.port_;
|
|
valid_ = ctype.valid_;
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
void CameraType::setModel(const TQString& model) {
|
|
model_ = model;
|
|
}
|
|
|
|
void CameraType::setPort(const TQString& port) {
|
|
port_ = port;
|
|
}
|
|
|
|
TQString CameraType::model() const {
|
|
return model_;
|
|
}
|
|
|
|
TQString CameraType::port() const {
|
|
return port_;
|
|
}
|
|
|
|
bool CameraType::valid() {
|
|
return valid_;
|
|
}
|
|
|
|
void CameraType::setValid(bool valid) {
|
|
valid_ = valid;
|
|
}
|
|
|
|
} // NameSpace KIPIKameraKlientPlugin
|