aboutsummaryrefslogtreecommitdiff
path: root/src/optmanager.cpp
diff options
context:
space:
mode:
authorBarattero Laurent <laurent@larueluberlu.net>2014-01-21 04:02:33 +0100
committerBarattero Laurent <laurent@larueluberlu.net>2014-01-21 04:02:33 +0100
commit98f60a7659f12e0474ecd3fed0632a059fb4133f (patch)
tree8f10736fec6777df15b70230489429d45978cd0f /src/optmanager.cpp
parent6ed6128396063cc4d1676d41fb63517eb29162e4 (diff)
update to version 0.3.0
adds improved driver support for linux
Diffstat (limited to 'src/optmanager.cpp')
-rw-r--r--src/optmanager.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/optmanager.cpp b/src/optmanager.cpp
index 9ea843f..6a82787 100644
--- a/src/optmanager.cpp
+++ b/src/optmanager.cpp
@@ -27,7 +27,7 @@
* for the time being, the value is set to max.
* we could test string before conversion.
*
- * Version: 0.2
+ * Version: 0.3.0.1
* Created: 23/12/2013 23:31:46
* Revision: none
* Compiler: gcc
@@ -112,6 +112,13 @@ OptManager::start()
sendGetSerial(*iter);
}
+ // Symlink
+ for (vector<string>::iterator iter = symlinkList.begin();
+ iter != symlinkList.end(); ++iter)
+ {
+ sendSymlink(*iter);
+ }
+
// Set serial number
for (vector<optSerial>::iterator iter = setSerialList.begin();
iter != setSerialList.end(); ++iter)
@@ -179,6 +186,20 @@ OptManager::sendGetSerial( std::string port_name)
}
/*
+ * Method: OptManager :: sendSymlink
+ */
+ void
+OptManager::sendSymlink( std::string port_name)
+{
+ string sym_out;
+ Ultimate prop(port_name);
+ string serial_number = prop.getSerial();
+ sym_out = Symlink::getSym(serial_number);
+ cout << sym_out << endl;
+
+
+}
+/*
* Method: OptManager :: sendSetSerial
*/
void