upnpbrowser: change code format

Origin commit data
------------------
Commit: 774247789b
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-14 (Sun, 14 Nov 2021)
This commit is contained in:
2021-11-14 22:12:27 +01:00
committed by vanhofen
parent a5056cd696
commit f35a74f78d
2 changed files with 379 additions and 309 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -60,77 +60,77 @@ class CFrameBuffer;
class CUpnpBrowserGui : public CMenuTarget, public CListHelpers class CUpnpBrowserGui : public CMenuTarget, public CListHelpers
{ {
public: public:
CUpnpBrowserGui(); CUpnpBrowserGui();
~CUpnpBrowserGui(); ~CUpnpBrowserGui();
int exec(CMenuTarget* parent, const std::string & actionKey); int exec(CMenuTarget *parent, const std::string &actionKey);
private: private:
std::vector<CUPnPDevice> m_devices; std::vector<CUPnPDevice> m_devices;
sigc::connection sigFonts; sigc::connection sigFonts;
sigc::connection sigPall; sigc::connection sigPall;
UPnPEntry m_playing_entry; UPnPEntry m_playing_entry;
CUPnPSocket * m_socket; CUPnPSocket *m_socket;
CFrameBuffer * m_frameBuffer; CFrameBuffer *m_frameBuffer;
int m_LastMode; int m_LastMode;
int m_width; int m_width;
int m_height; int m_height;
int m_x; int m_x;
int m_y; int m_y;
unsigned int m_listmaxshow; unsigned int m_listmaxshow;
unsigned int m_deviceliststart; unsigned int m_deviceliststart;
unsigned int m_selecteddevice; unsigned int m_selecteddevice;
int font_item; int font_item;
int m_topbox_height; int m_topbox_height;
int m_header_height; int m_header_height;
int m_header_y; int m_header_y;
int m_item_height; int m_item_height;
int m_item_y; int m_item_y;
int m_footer_height; int m_footer_height;
int m_footer_y; int m_footer_y;
int m_infobox_height; int m_infobox_height;
int m_infobox_y; int m_infobox_y;
bool m_folderplay; bool m_folderplay;
std::string m_playfolder; std::string m_playfolder;
int m_playid; int m_playid;
time_t m_time_played; time_t m_time_played;
bool m_playing_entry_is_shown; bool m_playing_entry_is_shown;
time_t timeout; time_t timeout;
int video_key_msg; int video_key_msg;
CComponentsDetailsLine * dline; CComponentsDetailsLine *dline;
CComponentsFooter footer; CComponentsFooter footer;
CComponentsInfoBox topbox, infobox, timebox; CComponentsInfoBox topbox, infobox, timebox;
CComponentsPicture *image; CComponentsPicture *image;
bool discoverDevices(); bool discoverDevices();
void splitProtocol(std::string &protocol, std::string &prot, std::string &network, std::string &mime, std::string &additional); void splitProtocol(std::string &protocol, std::string &prot, std::string &network, std::string &mime, std::string &additional);
bool getResults(std::string id, unsigned int start, unsigned int count, std::list<UPnPAttribute> &results); bool getResults(std::string id, unsigned int start, unsigned int count, std::list<UPnPAttribute> &results);
std::vector<UPnPEntry> *decodeResult(std::string); std::vector<UPnPEntry> *decodeResult(std::string);
void Init(); void Init();
void updateDeviceSelection(int newpos); void updateDeviceSelection(int newpos);
void selectDevice(); void selectDevice();
void paintDevices(); void paintDevices();
void paintDevice(unsigned int pos); void paintDevice(unsigned int pos);
void paintDeviceInfo(); void paintDeviceInfo();
void playnext(); void playnext();
bool getItems(std::string id, unsigned int index, std::vector<UPnPEntry> * &entries, unsigned int &total); bool getItems(std::string id, unsigned int index, std::vector<UPnPEntry>*&entries, unsigned int &total);
bool updateItemSelection(std::string id, std::vector<UPnPEntry> * &entries, int newpos, unsigned int &selected, unsigned int &liststart); bool updateItemSelection(std::string id, std::vector<UPnPEntry>*&entries, int newpos, unsigned int &selected, unsigned int &liststart);
bool selectItem(std::string); bool selectItem(std::string);
void paintItems(std::vector<UPnPEntry> *entry, unsigned int selected, unsigned int max, unsigned int offset); void paintItems(std::vector<UPnPEntry> *entry, unsigned int selected, unsigned int max, unsigned int offset);
void paintItem(std::vector<UPnPEntry> *entry, unsigned int pos, unsigned int selected); void paintItem(std::vector<UPnPEntry> *entry, unsigned int pos, unsigned int selected);
void paintItemInfo(UPnPEntry *entry); void paintItemInfo(UPnPEntry *entry);
void paintDetails(UPnPEntry *entry, bool use_playing = false); void paintDetails(UPnPEntry *entry, bool use_playing = false);
void paintItem2DetailsLine(int pos); void paintItem2DetailsLine(int pos);
void updateTimes(const bool force = false); void updateTimes(const bool force = false);
void updateMode(); void updateMode();
void playAudio(std::string name, int type); void playAudio(std::string name, int type);
void stopAudio(); void stopAudio();
void showPicture(std::string name); void showPicture(std::string name);
void playVideo(std::string name, std::string url); void playVideo(std::string name, std::string url);
}; };
#endif #endif