| 3911 | } |
| 3912 | |
| 3913 | const char * Config::getVirtualDisplayView(ViewType type, int index) const noexcept |
| 3914 | { |
| 3915 | switch(type) |
| 3916 | { |
| 3917 | case VIEW_DISPLAY_DEFINED: |
| 3918 | { |
| 3919 | const ViewVec & views = getImpl()->m_virtualDisplay.m_views; |
| 3920 | if (index >= 0 && index < static_cast<int>(views.size())) |
| 3921 | { |
| 3922 | return views[index].m_name.c_str(); |
| 3923 | } |
| 3924 | break; |
| 3925 | } |
| 3926 | case VIEW_SHARED: |
| 3927 | { |
| 3928 | const StringUtils::StringVec & views = getImpl()->m_virtualDisplay.m_sharedViews; |
| 3929 | if (index >= 0 && index < static_cast<int>(views.size())) |
| 3930 | { |
| 3931 | return views[index].c_str(); |
| 3932 | } |
| 3933 | break; |
| 3934 | } |
| 3935 | } |
| 3936 | |
| 3937 | return ""; |
| 3938 | } |
| 3939 | |
| 3940 | bool Config::AreVirtualViewsEqual(const ConstConfigRcPtr & first, |
| 3941 | const ConstConfigRcPtr & second, |