]> Creatis software - clitk.git/blob - vv/vvUtils.h
9a8046265a7810f506d734b2a12a4c7ce9034544
[clitk.git] / vv / vvUtils.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef vvXXX_h
19 #define vvXXX_h
20 #include <list>
21 #include <string>
22 #include <QSettings>
23
24 ///Returns the last images opened by the user
25 std::list<std::string> GetRecentlyOpenedImages();
26
27 ///Adds an image to the list of recently opened images
28 void AddToRecentlyOpenedImages(std::string filename);
29
30 ///path to user settings
31 QString getVVSettingsPath();
32
33 ///by default nativeFormat
34 QSettings::Format getSettingsOptionFormat();
35
36 /// Add a Dicom Server to settings
37 void AddDicomServer(std::string nickname, std::string aetitle, std::string adress, std::string port);
38
39 /// Remove a Dicom Server to settings
40 void removeDicomServer(std::string nickname);
41
42 // get List of Dicom Servers
43 QStringList getDicomServers();
44
45 // Set parameters for VV (AETITLE, port-scu) to allow c-move.
46 void setDicomClient();
47
48 // get VV-AETITLE  for c-move parameters.
49 std::string getDicomClientAETitle();
50
51 // get VV-PORT-SCU  for c-move parameters.
52 int getDicomClientPort();
53
54 // get the directory where the dicom files will be stored during c-move action.
55 std::string getCMoveDirectory();
56
57 std::map <std::string,std::string > getDicomServer(QString nickname);
58 #endif