summaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCServerST.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-11-07 21:13:54 +0000
committerPierre Ossman <ossman@cendio.se>2011-11-07 21:13:54 +0000
commita3ac01ef9ce92ca2ddd31a8a647937235e294f6d (patch)
tree6f22f0c1dd96df5391950e41786911490992a695 /common/rfb/VNCServerST.cxx
parent2aa4b0c49352472baa6c060371497377350a3d43 (diff)
downloadtigervnc-a3ac01ef9ce92ca2ddd31a8a647937235e294f6d.tar.gz
tigervnc-a3ac01ef9ce92ca2ddd31a8a647937235e294f6d.zip
Clean up the interface for VNCSConnectionST. Entry points are more apparent
and the data flow is now more strictly aimed towards this connection class. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4771 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/VNCServerST.cxx')
-rw-r--r--common/rfb/VNCServerST.cxx20
1 files changed, 5 insertions, 15 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index 32be8625..eea6565d 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -330,7 +330,7 @@ void VNCServerST::setScreenLayout(const ScreenSet& layout)
std::list<VNCSConnectionST*>::iterator ci, ci_next;
for (ci=clients.begin();ci!=clients.end();ci=ci_next) {
ci_next = ci; ci_next++;
- (*ci)->screenLayoutChange(reasonServer);
+ (*ci)->screenLayoutChangeOrClose(reasonServer);
}
}
@@ -348,7 +348,7 @@ void VNCServerST::bell()
std::list<VNCSConnectionST*>::iterator ci, ci_next;
for (ci = clients.begin(); ci != clients.end(); ci = ci_next) {
ci_next = ci; ci_next++;
- (*ci)->bell();
+ (*ci)->bellOrClose();
}
}
@@ -357,7 +357,7 @@ void VNCServerST::serverCutText(const char* str, int len)
std::list<VNCSConnectionST*>::iterator ci, ci_next;
for (ci = clients.begin(); ci != clients.end(); ci = ci_next) {
ci_next = ci; ci_next++;
- (*ci)->serverCutText(str, len);
+ (*ci)->serverCutTextOrClose(str, len);
}
}
@@ -367,7 +367,7 @@ void VNCServerST::setName(const char* name_)
std::list<VNCSConnectionST*>::iterator ci, ci_next;
for (ci = clients.begin(); ci != clients.end(); ci = ci_next) {
ci_next = ci; ci_next++;
- (*ci)->setDesktopName(name_);
+ (*ci)->setDesktopNameOrClose(name_);
}
}
@@ -385,16 +385,6 @@ void VNCServerST::add_copied(const Region& dest, const Point& delta)
}
}
-bool VNCServerST::clientsReadyForUpdate()
-{
- std::list<VNCSConnectionST*>::iterator ci;
- for (ci = clients.begin(); ci != clients.end(); ci++) {
- if ((*ci)->readyForUpdate())
- return true;
- }
- return false;
-}
-
void VNCServerST::tryUpdate()
{
std::list<VNCSConnectionST*>::iterator ci, ci_next;
@@ -613,6 +603,6 @@ void VNCServerST::notifyScreenLayoutChange(VNCSConnectionST* requester)
ci_next = ci; ci_next++;
if ((*ci) == requester)
continue;
- (*ci)->screenLayoutChange(reasonOtherClient);
+ (*ci)->screenLayoutChangeOrClose(reasonOtherClient);
}
}