factor out genSortName, cleanup comment
[enigma2.git] / lib / dvb / idvb.h
index c6cf20eb87d0d04ee4296d1c696f2821bfd8ce7a..ad5da21e9db0747684ce89451a9e37c50bda94f9 100644 (file)
@@ -29,7 +29,16 @@ struct eBouquet
        RESULT moveService(const eServiceReference &, unsigned int);
 };
 
-               // bitte KEINE operator int() definieren, sonst bringt das ganze nix!
+               /* these structures have by intention no operator int() defined.
+                  the reason of these structures is to avoid mixing for example
+                  a onid and a tsid (as there's no general order for them).
+                  
+                  defining an operator int() would implicitely convert values
+                  between them over the constructor with the int argument.
+                  
+                  'explicit' doesn't here - eTransportStreamID(eOriginalNetworkID(n)) 
+                  would still work. */
+
 struct eTransportStreamID
 {
 private:
@@ -198,6 +207,8 @@ public:
        std::string m_service_name, m_service_name_sort;
        std::string m_provider_name;
        
+       void genSortName();
+       
        int m_flags;
        std::set<int> m_ca;
        std::map<int,int> m_cache;