https://bugs.kde.org/show_bug.cgi?id=449634

            Bug ID: 449634
           Summary: Help needed with programming extension for audio
                    applet
           Product: plasma-pa
           Version: unspecified
          Platform: unspecified
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: jur...@outlook.de
                CC: m...@ratijas.tk, now...@gmail.com
  Target Milestone: ---

Created attachment 146289
  --> https://bugs.kde.org/attachment.cgi?id=146289&action=edit
Uncompiled source code

This isn't really a bug, but we have a problem with trying to add a
functionality to plasma-pa, allowing you to hide audio devices from the applet.
What we have done so far is implementing a button into the settings that sets a
property for the audio device. The problem occurs in trying to filter out
devices with the hidden property.  We are setting the property in the code from
the system settings, but we need the information about it in the code of the
audio applet.

We thought of creating a config file, in which we specify the audio devices
that should be hidden, that will be read by the code of the applet. Therefore,
C++ is needed due to QML and JS not being able to create, write and read files.
Unfortunately, we can not figure out how the C++ is implemented in the
preexisting code, because it isn't done in the usual way.

Does anyone know more about it and can eventually help, or does anyone have a
better idea than that? We have attached the uncompiled source code (including
our changes). In the compiled version, the C++ is gone and only the QML is
left.

We are open and grateful for every suggestion. Thanks in advance!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to