function Localmusic(e){function a(){n=["&#xE101;","bose","PLAY"],r=["&#xE103;","bose","PAUSE"],i=["&#xE10D;","bose","NEXT_TRACK"],s=["&#xE107;","bose","PREV_TRACK"],o=[];var t=funcObj.pageCon.getPageMenuItems("localmusic");u.setInits({stopState:n,playState:r,controls:o,menuLevels:t,featureList:e})}function f(e,t){o=[s,n,i];if(e=="PLAY_STATE"||e=="BUFFERING_STATE")o[1]=r;return o}function l(e,n,r,i){var s=funcObj.resumeSource.getEcoSystemState(),o=funcObj.devCon.getDeviceEcosystemUpdateStatus(funcObj.UIMain.getUID());s&&!o&&funcObj.devCon.sendMsg(funcObj.UIMain.getUID(),"sourceDiscoveryStatus","sourceDiscoveryStatus",{SOURCE:"LOCAL_MUSIC",SOURCEACCOUNT:e}),t[e]={srcAcc:e,srcUser:n,srcLoc:r,secret:i}}function c(){t={}}function h(){return t}function p(e,t,n){var r=[];for(var i=0,s=t.length;i<s;i++)t[i][1]==="viewArtistPage"||t[i][1]==="viewAlbumPage"?n.children("ContentItem")[0].attributes.type.value.toLowerCase()!=="podcast"&&r.push(t[i]):t[i][1]==="viewPodcastPage"&&n.children("ContentItem")[0].attributes.type.value.toLowerCase()==="podcast"&&r.push(t[i]);return r}function d(e){switch(e){case"##TRANS_TRACKS##":return!0;case"##TRANS_ARTISTS##":return!0;case"##TRANS_ALBUMS##":return!0;case"##TRANS_COMPILATIONS##":return!0;case"##TRANS_COMPOSERS##":return!0;default:return!1}}var t,n,r,i,s,o,u=new SourceCommon;u.extend(Localmusic),this.setup=l,this.getControls=f,this.getAccounts=h,this.clearAccounts=c,this.filterMoreButs=p,this.shouldShowABC=d,a()};