use friend class and hide methods
[android/external-libkmsxx.git] / libkms++ / connector.h
index 14e6b369420c1522e87bbda6ff144e4b02209ce0..84845d5326b8c2235ff551b5d5953747150e541e 100644 (file)
@@ -24,12 +24,8 @@ struct Videomode
 
 class Connector : public DrmObject
 {
+       friend class Card;
 public:
-       Connector(Card& card, uint32_t id, uint32_t idx);
-       ~Connector();
-
-       void setup();
-
        void print_short() const;
 
        Videomode get_default_mode() const;
@@ -42,6 +38,11 @@ public:
        bool connected() const;
 
 private:
+       Connector(Card& card, uint32_t id, uint32_t idx);
+       ~Connector();
+
+       void setup();
+
        ConnectorPriv* m_priv;
 
        std::string m_fullname;