Removed the verb 'get' from the name of public getters
authorKurt Pattyn <pattyn.kurt@gmail.com>
Thu, 22 Aug 2013 18:40:07 +0000 (20:40 +0200)
committerKurt Pattyn <pattyn.kurt@gmail.com>
Thu, 22 Aug 2013 18:40:07 +0000 (20:40 +0200)
source/websocketserver.cpp
source/websocketserver.h

index f221296..556c929 100644 (file)
@@ -304,7 +304,7 @@ bool WebSocketServer::waitForNewConnection(int msec, bool *timedOut)
 /*!
   Returns a list of websocket versions that this server is supporting.
  */
-QList<WebSocketProtocol::Version> WebSocketServer::getSupportedVersions() const
+QList<WebSocketProtocol::Version> WebSocketServer::supportedVersions() const
 {
        QList<WebSocketProtocol::Version> supportedVersions;
        supportedVersions << WebSocketProtocol::getCurrentVersion();    //we only support V13
@@ -314,7 +314,7 @@ QList<WebSocketProtocol::Version> WebSocketServer::getSupportedVersions() const
 /*!
   Returns a list of websocket subprotocols that this server supports.
  */
-QList<QString> WebSocketServer::getSupportedProtocols() const
+QList<QString> WebSocketServer::supportedProtocols() const
 {
        QList<QString> supportedProtocols;
        return supportedProtocols;      //no protocols are currently supported
@@ -323,7 +323,7 @@ QList<QString> WebSocketServer::getSupportedProtocols() const
 /*!
   Returns a list of websocket extensions that this server supports.
  */
-QList<QString> WebSocketServer::getSupportedExtensions() const
+QList<QString> WebSocketServer::supportedExtensions() const
 {
        QList<QString> supportedExtensions;
        return supportedExtensions;     //no extensions are currently supported
@@ -356,9 +356,9 @@ void WebSocketServer::handshakeReceived()
                textStream >> request;
 
                HandshakeResponse response(request,
-                                                                  getSupportedVersions(),
-                                                                  getSupportedProtocols(),
-                                                                  getSupportedExtensions());
+                                                                  supportedVersions(),
+                                                                  supportedProtocols(),
+                                                                  supportedExtensions());
                disconnect(pTcpSocket, SIGNAL(readyRead()), this, SLOT(handshakeReceived()));
 
                if (response.isValid())
index e01d3a2..c868590 100644 (file)
@@ -42,9 +42,9 @@ public:
        int socketDescriptor() const;
        bool waitForNewConnection(int msec = 0, bool *timedOut = 0);
 
-       QList<WebSocketProtocol::Version> getSupportedVersions() const;
-       QList<QString> getSupportedProtocols() const;
-       QList<QString> getSupportedExtensions() const;
+       QList<WebSocketProtocol::Version> supportedVersions() const;
+       QList<QString> supportedProtocols() const;
+       QList<QString> supportedExtensions() const;
 
 Q_SIGNALS:
        void newConnection();