• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataNetworkLinkControl.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2013 Mohammed Nafees <nafees.technocool@gmail.com>
9 //
10 
11 #include "GeoDataNetworkLinkControl.h"
12 #include "GeoDataTypes.h"
13 
14 namespace Marble
15 {
16 
17 class GeoDataNetworkLinkControlPrivate
18 {
19 public:
20  GeoDataNetworkLinkControlPrivate();
21 
22  GeoDataNetworkLinkControlPrivate( const GeoDataNetworkLinkControlPrivate &other );
23 
24  qreal m_minRefreshPeriod;
25  qreal m_maxSessionLength;
26  QString m_cookie;
27  QString m_message;
28  QString m_linkName;
29  QString m_linkDescription;
30  QString m_linkSnippet;
31  int m_maxLines;
32  QDateTime m_expires;
33  GeoDataUpdate m_update;
34  GeoDataAbstractView *m_abstractView;
35 };
36 
37 GeoDataNetworkLinkControlPrivate::GeoDataNetworkLinkControlPrivate() :
38  m_minRefreshPeriod( 0.0 ),
39  m_maxSessionLength( 0.0 ),
40  m_cookie( "" ),
41  m_message( "" ),
42  m_linkName( "" ),
43  m_linkDescription( "" ),
44  m_linkSnippet( "" ),
45  m_maxLines( 2 ),
46  m_expires(),
47  m_update(),
48  m_abstractView( 0 )
49 {
50 }
51 
52 GeoDataNetworkLinkControlPrivate::GeoDataNetworkLinkControlPrivate( const GeoDataNetworkLinkControlPrivate &other ) :
53  m_minRefreshPeriod( other.m_minRefreshPeriod ),
54  m_maxSessionLength( other.m_maxSessionLength ),
55  m_cookie( other.m_cookie ),
56  m_message( other.m_message ),
57  m_linkName( other.m_linkName ),
58  m_linkDescription( other.m_linkDescription ),
59  m_linkSnippet( other.m_linkSnippet ),
60  m_maxLines( other.m_maxLines ),
61  m_expires( other.m_expires ),
62  m_update( other.m_update ),
63  m_abstractView( other.m_abstractView ? other.m_abstractView->copy() : 0 )
64 {
65 }
66 
67 GeoDataNetworkLinkControl::GeoDataNetworkLinkControl() :
68  d( new GeoDataNetworkLinkControlPrivate )
69 {
70 }
71 
72 GeoDataNetworkLinkControl::GeoDataNetworkLinkControl( const Marble::GeoDataNetworkLinkControl &other ) :
73  GeoDataContainer(), d( new GeoDataNetworkLinkControlPrivate( *other.d ) )
74 {
75 }
76 
77 GeoDataNetworkLinkControl &GeoDataNetworkLinkControl::operator=( const GeoDataNetworkLinkControl &other )
78 {
79  GeoDataContainer::operator =( other );
80  *d = *other.d;
81  d->m_abstractView = other.d->m_abstractView ? other.d->m_abstractView->copy() : 0;
82  return *this;
83 }
84 
85 GeoDataNetworkLinkControl::~GeoDataNetworkLinkControl()
86 {
87  delete d->m_abstractView;
88  delete d;
89 }
90 
91 const char *GeoDataNetworkLinkControl::nodeType() const
92 {
93  return GeoDataTypes::GeoDataNetworkLinkControlType;
94 }
95 
96 qreal GeoDataNetworkLinkControl::minRefreshPeriod() const
97 {
98  return d->m_minRefreshPeriod;
99 }
100 
101 void GeoDataNetworkLinkControl::setMinRefreshPeriod( const qreal &minRefreshPeriod )
102 {
103  d->m_minRefreshPeriod = minRefreshPeriod;
104 }
105 
106 qreal GeoDataNetworkLinkControl::maxSessionLength() const
107 {
108  return d->m_maxSessionLength;
109 }
110 
111 void GeoDataNetworkLinkControl::setMaxSessionLength( const qreal &maxSessionLength )
112 {
113  d->m_maxSessionLength = maxSessionLength;
114 }
115 
116 QString GeoDataNetworkLinkControl::cookie() const
117 {
118  return d->m_cookie;
119 }
120 
121 void GeoDataNetworkLinkControl::setCookie( const QString &cookie )
122 {
123  d->m_cookie = cookie;
124 }
125 
126 QString GeoDataNetworkLinkControl::message() const
127 {
128  return d->m_message;
129 }
130 
131 void GeoDataNetworkLinkControl::setMessage( const QString &message )
132 {
133  d->m_message = message;
134 }
135 
136 QString GeoDataNetworkLinkControl::linkName() const
137 {
138  return d->m_linkName;
139 }
140 
141 void GeoDataNetworkLinkControl::setLinkName( const QString &linkName )
142 {
143  d->m_linkName = linkName;
144 }
145 
146 QString GeoDataNetworkLinkControl::linkDescription() const
147 {
148  return d->m_linkDescription;
149 }
150 
151 void GeoDataNetworkLinkControl::setLinkDescription( const QString &linkDescription )
152 {
153  d->m_linkDescription = linkDescription;
154 }
155 
156 QString GeoDataNetworkLinkControl::linkSnippet() const
157 {
158  return d->m_linkSnippet;
159 }
160 
161 void GeoDataNetworkLinkControl::setLinkSnippet( const QString &linkSnippet )
162 {
163  d->m_linkSnippet = linkSnippet;
164 }
165 
166 int GeoDataNetworkLinkControl::maxLines() const
167 {
168  return d->m_maxLines;
169 }
170 
171 void GeoDataNetworkLinkControl::setMaxLines( const int &maxLines )
172 {
173  d->m_maxLines = maxLines;
174 }
175 
176 QDateTime GeoDataNetworkLinkControl::expires() const
177 {
178  return d->m_expires;
179 }
180 
181 void GeoDataNetworkLinkControl::setExpires( const QDateTime &expires )
182 {
183  d->m_expires = expires;
184 }
185 
186 GeoDataUpdate &GeoDataNetworkLinkControl::update()
187 {
188  return d->m_update;
189 }
190 
191 const GeoDataUpdate& GeoDataNetworkLinkControl::update() const
192 {
193  return d->m_update;
194 }
195 
196 void GeoDataNetworkLinkControl::setUpdate( const GeoDataUpdate &update )
197 {
198  d->m_update = update;
199 }
200 
201 GeoDataAbstractView *GeoDataNetworkLinkControl::abstractView() const
202 {
203  return d->m_abstractView;
204 }
205 
206 void GeoDataNetworkLinkControl::setAbstractView( GeoDataAbstractView *abstractView )
207 {
208  d->m_abstractView = abstractView;
209 }
210 
211 }
Marble::GeoDataNetworkLinkControl::setCookie
void setCookie(const QString &cookie)
Definition: GeoDataNetworkLinkControl.cpp:121
Marble::GeoDataNetworkLinkControl::setUpdate
void setUpdate(const GeoDataUpdate &update)
Definition: GeoDataNetworkLinkControl.cpp:196
Marble::GeoDataAbstractView
Definition: GeoDataAbstractView.h:28
Marble::GeoDataNetworkLinkControl::minRefreshPeriod
qreal minRefreshPeriod() const
Definition: GeoDataNetworkLinkControl.cpp:96
Marble::GeoDataNetworkLinkControl::setAbstractView
void setAbstractView(GeoDataAbstractView *abstractView)
Definition: GeoDataNetworkLinkControl.cpp:206
Marble::GeoDataNetworkLinkControl::maxLines
int maxLines() const
Definition: GeoDataNetworkLinkControl.cpp:166
Marble::GeoDataNetworkLinkControl::~GeoDataNetworkLinkControl
~GeoDataNetworkLinkControl()
Definition: GeoDataNetworkLinkControl.cpp:85
Marble::GeoDataContainer
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
Marble::GeoDataNetworkLinkControl::linkSnippet
QString linkSnippet() const
Definition: GeoDataNetworkLinkControl.cpp:156
Marble::GeoDataNetworkLinkControl::linkDescription
QString linkDescription() const
Definition: GeoDataNetworkLinkControl.cpp:146
Marble::GeoDataNetworkLinkControl::linkName
QString linkName() const
Definition: GeoDataNetworkLinkControl.cpp:136
Marble::GeoDataNetworkLinkControl::update
GeoDataUpdate & update()
Definition: GeoDataNetworkLinkControl.cpp:186
Marble::GeoDataNetworkLinkControl::cookie
QString cookie() const
Definition: GeoDataNetworkLinkControl.cpp:116
Marble::GeoDataNetworkLinkControl::expires
QDateTime expires() const
Definition: GeoDataNetworkLinkControl.cpp:176
Marble::GeoDataNetworkLinkControl::setLinkSnippet
void setLinkSnippet(const QString &linkSnippet)
Definition: GeoDataNetworkLinkControl.cpp:161
Marble::GeoDataNetworkLinkControl::message
QString message() const
Definition: GeoDataNetworkLinkControl.cpp:126
Marble::GeoDataNetworkLinkControl::operator=
GeoDataNetworkLinkControl & operator=(const GeoDataNetworkLinkControl &other)
Definition: GeoDataNetworkLinkControl.cpp:77
Marble::GeoDataNetworkLinkControl::setLinkName
void setLinkName(const QString &linkName)
Definition: GeoDataNetworkLinkControl.cpp:141
Marble::GeoDataNetworkLinkControl::setMinRefreshPeriod
void setMinRefreshPeriod(const qreal &minRefreshPeriod)
Definition: GeoDataNetworkLinkControl.cpp:101
Marble::GeoDataNetworkLinkControl::setMaxSessionLength
void setMaxSessionLength(const qreal &maxSessionLength)
Definition: GeoDataNetworkLinkControl.cpp:111
Marble::GeoDataNetworkLinkControl::setMaxLines
void setMaxLines(const int &maxLines)
Definition: GeoDataNetworkLinkControl.cpp:171
Marble::GeoDataNetworkLinkControl::setMessage
void setMessage(const QString &message)
Definition: GeoDataNetworkLinkControl.cpp:131
Marble::GeoDataUpdate
Definition: GeoDataUpdate.h:22
Marble::GeoDataNetworkLinkControl::abstractView
GeoDataAbstractView * abstractView() const
Definition: GeoDataNetworkLinkControl.cpp:201
Marble::GeoDataTypes::GeoDataNetworkLinkControlType
const char * GeoDataNetworkLinkControlType
Definition: GeoDataTypes.cpp:85
Marble::GeoDataNetworkLinkControl::maxSessionLength
qreal maxSessionLength() const
Definition: GeoDataNetworkLinkControl.cpp:106
Marble::GeoDataNetworkLinkControl::setExpires
void setExpires(const QDateTime &expires)
Definition: GeoDataNetworkLinkControl.cpp:181
GeoDataNetworkLinkControl.h
GeoDataTypes.h
Marble::GeoDataNetworkLinkControl
Definition: GeoDataNetworkLinkControl.h:27
Marble::GeoDataNetworkLinkControl::setLinkDescription
void setLinkDescription(const QString &linkDescription)
Definition: GeoDataNetworkLinkControl.cpp:151
Marble::GeoDataNetworkLinkControl::GeoDataNetworkLinkControl
GeoDataNetworkLinkControl()
Definition: GeoDataNetworkLinkControl.cpp:67
Marble::GeoDataNetworkLinkControl::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataNetworkLinkControl.cpp:91
Marble::GeoDataFeature::operator=
GeoDataFeature & operator=(const GeoDataFeature &other)
Definition: GeoDataFeature.cpp:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal