Procházet zdrojové kódy

getter for XNAT sessionId

Jan Zieher před 10 roky
rodič
revize
ba2b915a8f

+ 7 - 0
Libs/XNAT/Core/ctkXnatSession.cpp

@@ -461,6 +461,13 @@ QString ctkXnatSession::password() const
 }
 
 //----------------------------------------------------------------------------
+QString ctkXnatSession::sessionId() const
+{
+  Q_D(const ctkXnatSession);
+  return d->sessionId;
+}
+
+//----------------------------------------------------------------------------
 ctkXnatDataModel* ctkXnatSession::dataModel() const
 {
   Q_D(const ctkXnatSession);

+ 8 - 0
Libs/XNAT/Core/ctkXnatSession.h

@@ -139,6 +139,14 @@ public:
    */
   QString password() const;
 
+  /**
+   * @brief Get the sessionId for this XNAT session.
+   *
+   * @return The XNAT sessionId.
+   */
+  QString sessionId() const;
+
+
   ctkXnatDataModel* dataModel() const;
 
   /**