Qt Virtual Chart Table (QVCT)
CDeviceDataSource.hpp
Go to the documentation of this file.
1 // INDENTING (emacs/vi): -*- mode:c++; tab-width:2; c-basic-offset:2; intent-tabs-mode:nil; -*- ex: set tabstop=2 expandtab:
2 
3 /*
4  * Qt Virtual Chart Table (QVCT)
5  * Copyright (C) 2012 Cedric Dufour <http://cedric.dufour.name>
6  * Author: Cedric Dufour <http://cedric.dufour.name>
7  *
8  * The Qt Virtual Chart Table (QVCT) is free software:
9  * you can redistribute it and/or modify it under the terms of the GNU General
10  * Public License as published by the Free Software Foundation, Version 3.
11  *
12  * The Qt Virtual Chart Table (QVCT) is distributed in the hope
13  * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
14  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  * See the GNU General Public License for more details.
17  */
18 
19 #ifndef QVCT_CDEVICEDATASOURCE_HPP
20 #define QVCT_CDEVICEDATASOURCE_HPP
21 
22 
24 
29 {
30 
31  //------------------------------------------------------------------------------
32  // CONSTANTS / STATIC
33  //------------------------------------------------------------------------------
34 
35 public:
37  enum EType { UNDEFINED, GPS, AIS, SBS };
38 
39 
40  //------------------------------------------------------------------------------
41  // FIELDS
42  //------------------------------------------------------------------------------
43 
44 private:
46 
47  QString qsName;
49 
51 
52 
53  //------------------------------------------------------------------------------
54  // CONSTRUCTORS / DESTRUCTOR
55  //------------------------------------------------------------------------------
56 
57 protected:
58  CDeviceDataSource( const QString& _rqsName );
59  virtual ~CDeviceDataSource() {};
60 
61 
62  //------------------------------------------------------------------------------
63  // METHODS
64  //------------------------------------------------------------------------------
65 
66  // SETTERS
67 public:
69  void setSourceType( EType _eType ) { eType = _eType; };
70 
71  // GETTERS
72 public:
74  QString getSourceName() const { return qsName; };
76  EType getSourceType() const { return eType; };
77 
78 };
79 
80 #endif // QVCT_CDEVICEDATASOURCE_HPP
Data source details [name,type].
QString getSourceName() const
Returns the source name.
EType eType
Source type.
QString qsName
Source name.
EType
Data source type.
CDeviceDataSource(const QString &_rqsName)
EType getSourceType() const
Returns the source type.
void setSourceType(EType _eType)
Sets the source type.