Advertisement
Guest User

Untitled

a guest
May 5th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 106.09 KB | None | 0 0
  1. // This file is generated by kconfig_compiler from amarokconfig.kcfg.
  2. // All changes you do to this file will be lost.
  3. #ifndef AMAROKCONFIG_H
  4. #define AMAROKCONFIG_H
  5.  
  6. #include <amarok_export.h>
  7.  
  8. #include <kconfigskeleton.h>
  9. #include <kdebug.h>
  10.  
  11. #include <qdir.h>
  12. class AMAROK_EXPORT AmarokConfig : public KConfigSkeleton
  13. {
  14. public:
  15. class EnumFavorTracks
  16. {
  17. public:
  18. enum type { Off, HigherScores, HigherRatings, LessRecentlyPlayed, COUNT };
  19. };
  20. class EnumTrackProgression
  21. {
  22. public:
  23. enum type { Normal, RepeatTrack, RepeatAlbum, RepeatPlaylist, RandomTrack, RandomAlbum, COUNT };
  24. };
  25. class EnumReplayGainMode
  26. {
  27. public:
  28. enum type { Off, Track, Album, COUNT };
  29. };
  30. class EnumOsdAlignment
  31. {
  32. public:
  33. enum type { Left, Middle, Center, Right, COUNT };
  34. };
  35. class EnumTimeSpan
  36. {
  37. public:
  38. enum type { AllEvents, ThisWeek, ThisMonth, ThisYear, COUNT };
  39. };
  40.  
  41. static AmarokConfig *self();
  42. ~AmarokConfig();
  43.  
  44. /**
  45. Set Whether to display a second, left time label.
  46. */
  47. static
  48. void setLeftTimeDisplayEnabled( bool v )
  49. {
  50. if (!self()->isImmutable( QString::fromLatin1 ( "LeftTimeDisplayEnabled" ) ))
  51. self()->mLeftTimeDisplayEnabled = v;
  52. }
  53.  
  54. /**
  55. Get Whether to display a second, left time label.
  56. */
  57. static
  58. bool leftTimeDisplayEnabled()
  59. {
  60. return self()->mLeftTimeDisplayEnabled;
  61. }
  62.  
  63. /**
  64. Set Whether to display remaining track time in the left time label.
  65. */
  66. static
  67. void setLeftTimeDisplayRemaining( bool v )
  68. {
  69. if (!self()->isImmutable( QString::fromLatin1 ( "LeftTimeDisplayRemaining" ) ))
  70. self()->mLeftTimeDisplayRemaining = v;
  71. }
  72.  
  73. /**
  74. Get Whether to display remaining track time in the left time label.
  75. */
  76. static
  77. bool leftTimeDisplayRemaining()
  78. {
  79. return self()->mLeftTimeDisplayRemaining;
  80. }
  81.  
  82. /**
  83. Set Which tracks or albums to favor in Random Mode
  84. */
  85. static
  86. void setFavorTracks( int v )
  87. {
  88. if (!self()->isImmutable( QString::fromLatin1 ( "FavorTracks" ) ))
  89. self()->mFavorTracks = v;
  90. }
  91.  
  92. /**
  93. Get Which tracks or albums to favor in Random Mode
  94. */
  95. static
  96. int favorTracks()
  97. {
  98. return self()->mFavorTracks;
  99. }
  100.  
  101. /**
  102. Set How to progress through tracks in the playlist
  103. */
  104. static
  105. void setTrackProgression( int v )
  106. {
  107. if (!self()->isImmutable( QString::fromLatin1 ( "TrackProgression" ) ))
  108. self()->mTrackProgression = v;
  109. }
  110.  
  111. /**
  112. Get How to progress through tracks in the playlist
  113. */
  114. static
  115. int trackProgression()
  116. {
  117. return self()->mTrackProgression;
  118. }
  119.  
  120. /**
  121. Set The status of dynamic mode.
  122. */
  123. static
  124. void setDynamicMode( bool v )
  125. {
  126. if (!self()->isImmutable( QString::fromLatin1 ( "DynamicMode" ) ))
  127. self()->mDynamicMode = v;
  128. }
  129.  
  130. /**
  131. Get The status of dynamic mode.
  132. */
  133. static
  134. bool dynamicMode()
  135. {
  136. return self()->mDynamicMode;
  137. }
  138.  
  139. /**
  140. Set Previous tracks count.
  141. */
  142. static
  143. void setPreviousTracks( int v )
  144. {
  145. if (!self()->isImmutable( QString::fromLatin1 ( "PreviousTracks" ) ))
  146. self()->mPreviousTracks = v;
  147. }
  148.  
  149. /**
  150. Get Previous tracks count.
  151. */
  152. static
  153. int previousTracks()
  154. {
  155. return self()->mPreviousTracks;
  156. }
  157.  
  158. /**
  159. Set Upcoming tracks count.
  160. */
  161. static
  162. void setUpcomingTracks( int v )
  163. {
  164. if (!self()->isImmutable( QString::fromLatin1 ( "UpcomingTracks" ) ))
  165. self()->mUpcomingTracks = v;
  166. }
  167.  
  168. /**
  169. Get Upcoming tracks count.
  170. */
  171. static
  172. int upcomingTracks()
  173. {
  174. return self()->mUpcomingTracks;
  175. }
  176.  
  177. /**
  178. Set The most recently used Dynamic Mode
  179. */
  180. static
  181. void setLastDynamicMode( const QString & v )
  182. {
  183. if (!self()->isImmutable( QString::fromLatin1 ( "LastDynamicMode" ) ))
  184. self()->mLastDynamicMode = v;
  185. }
  186.  
  187. /**
  188. Get The most recently used Dynamic Mode
  189. */
  190. static
  191. QString lastDynamicMode()
  192. {
  193. return self()->mLastDynamicMode;
  194. }
  195.  
  196. /**
  197. Set Whether to show icon in system tray
  198. */
  199. static
  200. void setShowTrayIcon( bool v )
  201. {
  202. if (!self()->isImmutable( QString::fromLatin1 ( "ShowTrayIcon" ) ))
  203. self()->mShowTrayIcon = v;
  204. }
  205.  
  206. /**
  207. Get Whether to show icon in system tray
  208. */
  209. static
  210. bool showTrayIcon()
  211. {
  212. return self()->mShowTrayIcon;
  213. }
  214.  
  215. /**
  216. Set Whether to hide the context view.
  217. */
  218. static
  219. void setHideContextView( bool v )
  220. {
  221. if (!self()->isImmutable( QString::fromLatin1 ( "HideContextView" ) ))
  222. self()->mHideContextView = v;
  223. }
  224.  
  225. /**
  226. Get Whether to hide the context view.
  227. */
  228. static
  229. bool hideContextView()
  230. {
  231. return self()->mHideContextView;
  232. }
  233.  
  234. /**
  235. Set Whether to animate the systray icon
  236. */
  237. static
  238. void setAnimateTrayIcon( bool v )
  239. {
  240. if (!self()->isImmutable( QString::fromLatin1 ( "AnimateTrayIcon" ) ))
  241. self()->mAnimateTrayIcon = v;
  242. }
  243.  
  244. /**
  245. Get Whether to animate the systray icon
  246. */
  247. static
  248. bool animateTrayIcon()
  249. {
  250. return self()->mAnimateTrayIcon;
  251. }
  252.  
  253. /**
  254. Set Delay between tracks, in milliseconds
  255. */
  256. static
  257. void setTrackDelayLength( int v )
  258. {
  259. if (!self()->isImmutable( QString::fromLatin1 ( "TrackDelayLength" ) ))
  260. self()->mTrackDelayLength = v;
  261. }
  262.  
  263. /**
  264. Get Delay between tracks, in milliseconds
  265. */
  266. static
  267. int trackDelayLength()
  268. {
  269. return self()->mTrackDelayLength;
  270. }
  271.  
  272. /**
  273. Set Number of undo levels in playlist
  274. */
  275. static
  276. void setUndoLevels( int v )
  277. {
  278. if (!self()->isImmutable( QString::fromLatin1 ( "UndoLevels" ) ))
  279. self()->mUndoLevels = v;
  280. }
  281.  
  282. /**
  283. Get Number of undo levels in playlist
  284. */
  285. static
  286. int undoLevels()
  287. {
  288. return self()->mUndoLevels;
  289. }
  290.  
  291. /**
  292. Set Whether a splash-screen should be displayed on startup
  293. */
  294. static
  295. void setShowSplashscreen( bool v )
  296. {
  297. if (!self()->isImmutable( QString::fromLatin1 ( "ShowSplashscreen" ) ))
  298. self()->mShowSplashscreen = v;
  299. }
  300.  
  301. /**
  302. Get Whether a splash-screen should be displayed on startup
  303. */
  304. static
  305. bool showSplashscreen()
  306. {
  307. return self()->mShowSplashscreen;
  308. }
  309.  
  310. /**
  311. Set Whether playlists store relative path
  312. */
  313. static
  314. void setRelativePlaylist( bool v )
  315. {
  316. if (!self()->isImmutable( QString::fromLatin1 ( "RelativePlaylist" ) ))
  317. self()->mRelativePlaylist = v;
  318. }
  319.  
  320. /**
  321. Get Whether playlists store relative path
  322. */
  323. static
  324. bool relativePlaylist()
  325. {
  326. return self()->mRelativePlaylist;
  327. }
  328.  
  329. /**
  330. Set Filename of the external web browser to be invoked by Amarok.
  331. */
  332. static
  333. void setExternalBrowser( const QString & v )
  334. {
  335. if (!self()->isImmutable( QString::fromLatin1 ( "ExternalBrowser" ) ))
  336. self()->mExternalBrowser = v;
  337. }
  338.  
  339. /**
  340. Get Filename of the external web browser to be invoked by Amarok.
  341. */
  342. static
  343. QString externalBrowser()
  344. {
  345. return self()->mExternalBrowser;
  346. }
  347.  
  348. /**
  349. Set Whether to automatically attempt to fetch cover art as needed
  350. */
  351. static
  352. void setAutoGetCoverArt( bool v )
  353. {
  354. if (!self()->isImmutable( QString::fromLatin1 ( "AutoGetCoverArt" ) ))
  355. self()->mAutoGetCoverArt = v;
  356. }
  357.  
  358. /**
  359. Get Whether to automatically attempt to fetch cover art as needed
  360. */
  361. static
  362. bool autoGetCoverArt()
  363. {
  364. return self()->mAutoGetCoverArt;
  365. }
  366.  
  367. /**
  368. Set Automatically scroll the playlist to make the currently playing song visible
  369. */
  370. static
  371. void setAutoScrollPlaylist( bool v )
  372. {
  373. if (!self()->isImmutable( QString::fromLatin1 ( "AutoScrollPlaylist" ) ))
  374. self()->mAutoScrollPlaylist = v;
  375. }
  376.  
  377. /**
  378. Get Automatically scroll the playlist to make the currently playing song visible
  379. */
  380. static
  381. bool autoScrollPlaylist()
  382. {
  383. return self()->mAutoScrollPlaylist;
  384. }
  385.  
  386. /**
  387. Set Show Album art in the Collection Browser
  388. */
  389. static
  390. void setShowAlbumArt( bool v )
  391. {
  392. if (!self()->isImmutable( QString::fromLatin1 ( "ShowAlbumArt" ) ))
  393. self()->mShowAlbumArt = v;
  394. }
  395.  
  396. /**
  397. Get Show Album art in the Collection Browser
  398. */
  399. static
  400. bool showAlbumArt()
  401. {
  402. return self()->mShowAlbumArt;
  403. }
  404.  
  405. /**
  406. Set Show the Context View
  407. */
  408. static
  409. void setLockLayout( bool v )
  410. {
  411. if (!self()->isImmutable( QString::fromLatin1 ( "LockLayout" ) ))
  412. self()->mLockLayout = v;
  413. }
  414.  
  415. /**
  416. Get Show the Context View
  417. */
  418. static
  419. bool lockLayout()
  420. {
  421. return self()->mLockLayout;
  422. }
  423.  
  424. /**
  425. Set Whether organize files will overwrite existing files.
  426. */
  427. static
  428. void setOverwriteFiles( bool v )
  429. {
  430. if (!self()->isImmutable( QString::fromLatin1 ( "OverwriteFiles" ) ))
  431. self()->mOverwriteFiles = v;
  432. }
  433.  
  434. /**
  435. Get Whether organize files will overwrite existing files.
  436. */
  437. static
  438. bool overwriteFiles()
  439. {
  440. return self()->mOverwriteFiles;
  441. }
  442.  
  443. /**
  444. Set Whether organize files will group directories according to their filetype.
  445. */
  446. static
  447. void setGroupByFiletype( bool v )
  448. {
  449. if (!self()->isImmutable( QString::fromLatin1 ( "GroupByFiletype" ) ))
  450. self()->mGroupByFiletype = v;
  451. }
  452.  
  453. /**
  454. Get Whether organize files will group directories according to their filetype.
  455. */
  456. static
  457. bool groupByFiletype()
  458. {
  459. return self()->mGroupByFiletype;
  460. }
  461.  
  462. /**
  463. Set Whether organize files will group artists whose names start with the same character.
  464. */
  465. static
  466. void setGroupArtists( bool v )
  467. {
  468. if (!self()->isImmutable( QString::fromLatin1 ( "GroupArtists" ) ))
  469. self()->mGroupArtists = v;
  470. }
  471.  
  472. /**
  473. Get Whether organize files will group artists whose names start with the same character.
  474. */
  475. static
  476. bool groupArtists()
  477. {
  478. return self()->mGroupArtists;
  479. }
  480.  
  481. /**
  482. Set Whether organize files will ignore The in artist names.
  483. */
  484. static
  485. void setIgnoreThe( bool v )
  486. {
  487. if (!self()->isImmutable( QString::fromLatin1 ( "IgnoreThe" ) ))
  488. self()->mIgnoreThe = v;
  489. }
  490.  
  491. /**
  492. Get Whether organize files will ignore The in artist names.
  493. */
  494. static
  495. bool ignoreThe()
  496. {
  497. return self()->mIgnoreThe;
  498. }
  499.  
  500. /**
  501. Set Whether organize files will replace spaces in filenames with underscores.
  502. */
  503. static
  504. void setReplaceSpace( bool v )
  505. {
  506. if (!self()->isImmutable( QString::fromLatin1 ( "ReplaceSpace" ) ))
  507. self()->mReplaceSpace = v;
  508. }
  509.  
  510. /**
  511. Get Whether organize files will replace spaces in filenames with underscores.
  512. */
  513. static
  514. bool replaceSpace()
  515. {
  516. return self()->mReplaceSpace;
  517. }
  518.  
  519. /**
  520. Set Whether organize files will use cover art as folder icons.
  521. */
  522. static
  523. void setCoverIcons( bool v )
  524. {
  525. if (!self()->isImmutable( QString::fromLatin1 ( "CoverIcons" ) ))
  526. self()->mCoverIcons = v;
  527. }
  528.  
  529. /**
  530. Get Whether organize files will use cover art as folder icons.
  531. */
  532. static
  533. bool coverIcons()
  534. {
  535. return self()->mCoverIcons;
  536. }
  537.  
  538. /**
  539. Set Collection folder path destination for Organize files.
  540. */
  541. static
  542. void setOrganizeDirectory( const QString & v )
  543. {
  544. if (!self()->isImmutable( QString::fromLatin1 ( "OrganizeDirectory" ) ))
  545. self()->mOrganizeDirectory = v;
  546. }
  547.  
  548. /**
  549. Get Collection folder path destination for Organize files.
  550. */
  551. static
  552. QString organizeDirectory()
  553. {
  554. return self()->mOrganizeDirectory;
  555. }
  556.  
  557. /**
  558. Set Whether organize files will rename files in a manner compatible with vfat filesystems.
  559. */
  560. static
  561. void setVfatCompatible( bool v )
  562. {
  563. if (!self()->isImmutable( QString::fromLatin1 ( "VfatCompatible" ) ))
  564. self()->mVfatCompatible = v;
  565. }
  566.  
  567. /**
  568. Get Whether organize files will rename files in a manner compatible with vfat filesystems.
  569. */
  570. static
  571. bool vfatCompatible()
  572. {
  573. return self()->mVfatCompatible;
  574. }
  575.  
  576. /**
  577. Set Whether organize files will rename files such that they only contain 7-bit ASCII characters.
  578. */
  579. static
  580. void setAsciiOnly( bool v )
  581. {
  582. if (!self()->isImmutable( QString::fromLatin1 ( "AsciiOnly" ) ))
  583. self()->mAsciiOnly = v;
  584. }
  585.  
  586. /**
  587. Get Whether organize files will rename files such that they only contain 7-bit ASCII characters.
  588. */
  589. static
  590. bool asciiOnly()
  591. {
  592. return self()->mAsciiOnly;
  593. }
  594.  
  595. /**
  596. Set Whether organize files will use a custom file naming scheme.
  597. */
  598. static
  599. void setUseCustomScheme( bool v )
  600. {
  601. if (!self()->isImmutable( QString::fromLatin1 ( "UseCustomScheme" ) ))
  602. self()->mUseCustomScheme = v;
  603. }
  604.  
  605. /**
  606. Get Whether organize files will use a custom file naming scheme.
  607. */
  608. static
  609. bool useCustomScheme()
  610. {
  611. return self()->mUseCustomScheme;
  612. }
  613.  
  614. /**
  615. Set Format string for Organize files, if a custom naming scheme is used.
  616. */
  617. static
  618. void setCustomScheme( const QString & v )
  619. {
  620. if (!self()->isImmutable( QString::fromLatin1 ( "CustomScheme" ) ))
  621. self()->mCustomScheme = v;
  622. }
  623.  
  624. /**
  625. Get Format string for Organize files, if a custom naming scheme is used.
  626. */
  627. static
  628. QString customScheme()
  629. {
  630. return self()->mCustomScheme;
  631. }
  632.  
  633. /**
  634. Set Regular expression that is to be replaced.
  635. */
  636. static
  637. void setReplacementRegexp( const QString & v )
  638. {
  639. if (!self()->isImmutable( QString::fromLatin1 ( "ReplacementRegexp" ) ))
  640. self()->mReplacementRegexp = v;
  641. }
  642.  
  643. /**
  644. Get Regular expression that is to be replaced.
  645. */
  646. static
  647. QString replacementRegexp()
  648. {
  649. return self()->mReplacementRegexp;
  650. }
  651.  
  652. /**
  653. Set Replacing string.
  654. */
  655. static
  656. void setReplacementString( const QString & v )
  657. {
  658. if (!self()->isImmutable( QString::fromLatin1 ( "ReplacementString" ) ))
  659. self()->mReplacementString = v;
  660. }
  661.  
  662. /**
  663. Get Replacing string.
  664. */
  665. static
  666. QString replacementString()
  667. {
  668. return self()->mReplacementString;
  669. }
  670.  
  671. /**
  672. Set Basic or Advanced Mode
  673. */
  674. static
  675. void setMode( const QString & v )
  676. {
  677. if (!self()->isImmutable( QString::fromLatin1 ( "Mode" ) ))
  678. self()->mMode = v;
  679. }
  680.  
  681. /**
  682. Get Basic or Advanced Mode
  683. */
  684. static
  685. QString mode()
  686. {
  687. return self()->mMode;
  688. }
  689.  
  690. /**
  691. Set Master volume
  692. */
  693. static
  694. void setMasterVolume( int v )
  695. {
  696. if (v < 0)
  697. {
  698. kDebug() << "setMasterVolume: value " << v << " is less than the minimum value of 0" << endl;
  699. v = 0;
  700. }
  701.  
  702. if (v > 100)
  703. {
  704. kDebug() << "setMasterVolume: value " << v << " is greater than the maximum value of 100" << endl;
  705. v = 100;
  706. }
  707.  
  708. if (!self()->isImmutable( QString::fromLatin1 ( "MasterVolume" ) ))
  709. self()->mMasterVolume = v;
  710. }
  711.  
  712. /**
  713. Get Master volume
  714. */
  715. static
  716. int masterVolume()
  717. {
  718. return self()->mMasterVolume;
  719. }
  720.  
  721. /**
  722. Set Mute state
  723. */
  724. static
  725. void setMuteState( bool v )
  726. {
  727. if (!self()->isImmutable( QString::fromLatin1 ( "MuteState" ) ))
  728. self()->mMuteState = v;
  729. }
  730.  
  731. /**
  732. Get Mute state
  733. */
  734. static
  735. bool muteState()
  736. {
  737. return self()->mMuteState;
  738. }
  739.  
  740. /**
  741. Set Whether to crossfade between tracks
  742. */
  743. static
  744. void setCrossfade( bool v )
  745. {
  746. if (!self()->isImmutable( QString::fromLatin1 ( "Crossfade" ) ))
  747. self()->mCrossfade = v;
  748. }
  749.  
  750. /**
  751. Get Whether to crossfade between tracks
  752. */
  753. static
  754. bool crossfade()
  755. {
  756. return self()->mCrossfade;
  757. }
  758.  
  759. /**
  760. Set Length of crossfade, in milliseconds
  761. */
  762. static
  763. void setCrossfadeLength( int v )
  764. {
  765. if (v < 400)
  766. {
  767. kDebug() << "setCrossfadeLength: value " << v << " is less than the minimum value of 400" << endl;
  768. v = 400;
  769. }
  770. if (!self()->isImmutable( QString::fromLatin1 ( "CrossfadeLength" ) ))
  771. self()->mCrossfadeLength = v;
  772. }
  773.  
  774. /**
  775. Get Length of crossfade, in milliseconds
  776. */
  777. static
  778. int crossfadeLength()
  779. {
  780. return self()->mCrossfadeLength;
  781. }
  782.  
  783. /**
  784. Set When to Crossfade
  785. */
  786. static
  787. void setCrossfadeType( int v )
  788. {
  789. if (!self()->isImmutable( QString::fromLatin1 ( "CrossfadeType" ) ))
  790. self()->mCrossfadeType = v;
  791. }
  792.  
  793. /**
  794. Get When to Crossfade
  795. */
  796. static
  797. int crossfadeType()
  798. {
  799. return self()->mCrossfadeType;
  800. }
  801.  
  802. /**
  803. Set Whether to fade out tracks when pressing stop.
  804. */
  805. static
  806. void setFadeout( bool v )
  807. {
  808. if (!self()->isImmutable( QString::fromLatin1 ( "Fadeout" ) ))
  809. self()->mFadeout = v;
  810. }
  811.  
  812. /**
  813. Get Whether to fade out tracks when pressing stop.
  814. */
  815. static
  816. bool fadeout()
  817. {
  818. return self()->mFadeout;
  819. }
  820.  
  821. /**
  822. Set Length of fadeout, in milliseconds
  823. */
  824. static
  825. void setFadeoutLength( int v )
  826. {
  827. if (v < 400)
  828. {
  829. kDebug() << "setFadeoutLength: value " << v << " is less than the minimum value of 400" << endl;
  830. v = 400;
  831. }
  832. if (!self()->isImmutable( QString::fromLatin1 ( "FadeoutLength" ) ))
  833. self()->mFadeoutLength = v;
  834. }
  835.  
  836. /**
  837. Get Length of fadeout, in milliseconds
  838. */
  839. static
  840. int fadeoutLength()
  841. {
  842. return self()->mFadeoutLength;
  843. }
  844.  
  845. /**
  846. Set Whether to fade out when exiting the program.
  847. */
  848. static
  849. void setFadeoutOnExit( bool v )
  850. {
  851. if (!self()->isImmutable( QString::fromLatin1 ( "FadeoutOnExit" ) ))
  852. self()->mFadeoutOnExit = v;
  853. }
  854.  
  855. /**
  856. Get Whether to fade out when exiting the program.
  857. */
  858. static
  859. bool fadeoutOnExit()
  860. {
  861. return self()->mFadeoutOnExit;
  862. }
  863.  
  864. /**
  865. Set Equalizer mode - 0 = off, 1 to n = preset no
  866. */
  867. static
  868. void setEqualizerMode( int v )
  869. {
  870. if (!self()->isImmutable( QString::fromLatin1 ( "EqualizerMode" ) ))
  871. self()->mEqualizerMode = v;
  872. }
  873.  
  874. /**
  875. Get Equalizer mode - 0 = off, 1 to n = preset no
  876. */
  877. static
  878. int equalizerMode()
  879. {
  880. return self()->mEqualizerMode;
  881. }
  882.  
  883. /**
  884. Set 11 Equalizer gains include pre-amp, range -100..100, 0 is normal.
  885. */
  886. static
  887. void setEqualizerGains( const QList<int> & v )
  888. {
  889. if (!self()->isImmutable( QString::fromLatin1 ( "EqualizerGains" ) ))
  890. self()->mEqualizerGains = v;
  891. }
  892.  
  893. /**
  894. Get 11 Equalizer gains include pre-amp, range -100..100, 0 is normal.
  895. */
  896. static
  897. QList<int> equalizerGains()
  898. {
  899. return self()->mEqualizerGains;
  900. }
  901.  
  902. /**
  903. Set List with user equalizer preset names
  904. */
  905. static
  906. void setEqualizerPresetsNames( const QStringList & v )
  907. {
  908. if (!self()->isImmutable( QString::fromLatin1 ( "EqualizerPresetsNames" ) ))
  909. self()->mEqualizerPresetsNames = v;
  910. }
  911.  
  912. /**
  913. Get List with user equalizer preset names
  914. */
  915. static
  916. QStringList equalizerPresetsNames()
  917. {
  918. return self()->mEqualizerPresetsNames;
  919. }
  920.  
  921. /**
  922. Set List with user presets values
  923. */
  924. static
  925. void setEqualizerPresestValues( const QList<int> & v )
  926. {
  927. if (!self()->isImmutable( QString::fromLatin1 ( "EqualizerPresestValues" ) ))
  928. self()->mEqualizerPresestValues = v;
  929. }
  930.  
  931. /**
  932. Get List with user presets values
  933. */
  934. static
  935. QList<int> equalizerPresestValues()
  936. {
  937. return self()->mEqualizerPresestValues;
  938. }
  939.  
  940. /**
  941. Set List with user equalizer preset names
  942. */
  943. static
  944. void setDefEqualizerPresetsNames( const QStringList & v )
  945. {
  946. if (!self()->isImmutable( QString::fromLatin1 ( "DefEqualizerPresetsNames" ) ))
  947. self()->mDefEqualizerPresetsNames = v;
  948. }
  949.  
  950. /**
  951. Get List with user equalizer preset names
  952. */
  953. static
  954. QStringList defEqualizerPresetsNames()
  955. {
  956. return self()->mDefEqualizerPresetsNames;
  957. }
  958.  
  959. /**
  960. Set List with user presets values
  961. */
  962. static
  963. void setDefEqualizerPresestValues( const QList<int> & v )
  964. {
  965. if (!self()->isImmutable( QString::fromLatin1 ( "DefEqualizerPresestValues" ) ))
  966. self()->mDefEqualizerPresestValues = v;
  967. }
  968.  
  969. /**
  970. Get List with user presets values
  971. */
  972. static
  973. QList<int> defEqualizerPresestValues()
  974. {
  975. return self()->mDefEqualizerPresestValues;
  976. }
  977.  
  978. /**
  979. Set The mode for adjusting playback volume.
  980. */
  981. static
  982. void setReplayGainMode( int v )
  983. {
  984. if (!self()->isImmutable( QString::fromLatin1 ( "ReplayGainMode" ) ))
  985. self()->mReplayGainMode = v;
  986. }
  987.  
  988. /**
  989. Get The mode for adjusting playback volume.
  990. */
  991. static
  992. int replayGainMode()
  993. {
  994. return self()->mReplayGainMode;
  995. }
  996.  
  997. /**
  998. Set Amazon locale for cover retrieval
  999. */
  1000. static
  1001. void setAmazonLocale( const QString & v )
  1002. {
  1003. if (!self()->isImmutable( QString::fromLatin1 ( "AmazonLocale" ) ))
  1004. self()->mAmazonLocale = v;
  1005. }
  1006.  
  1007. /**
  1008. Get Amazon locale for cover retrieval
  1009. */
  1010. static
  1011. QString amazonLocale()
  1012. {
  1013. return self()->mAmazonLocale;
  1014. }
  1015.  
  1016. /**
  1017. Set Wikipedia locale for information retrieval
  1018. */
  1019. static
  1020. void setWikipediaLocale( const QString & v )
  1021. {
  1022. if (!self()->isImmutable( QString::fromLatin1 ( "WikipediaLocale" ) ))
  1023. self()->mWikipediaLocale = v;
  1024. }
  1025.  
  1026. /**
  1027. Get Wikipedia locale for information retrieval
  1028. */
  1029. static
  1030. QString wikipediaLocale()
  1031. {
  1032. return self()->mWikipediaLocale;
  1033. }
  1034.  
  1035. /**
  1036. Set Use KNotify support
  1037. */
  1038. static
  1039. void setKNotifyEnabled( bool v )
  1040. {
  1041. if (!self()->isImmutable( QString::fromLatin1 ( "KNotifyEnabled" ) ))
  1042. self()->mKNotifyEnabled = v;
  1043. }
  1044.  
  1045. /**
  1046. Get Use KNotify support
  1047. */
  1048. static
  1049. bool kNotifyEnabled()
  1050. {
  1051. return self()->mKNotifyEnabled;
  1052. }
  1053.  
  1054. /**
  1055. Set Use On-Screen Display
  1056. */
  1057. static
  1058. void setOsdEnabled( bool v )
  1059. {
  1060. if (!self()->isImmutable( QString::fromLatin1 ( "OsdEnabled" ) ))
  1061. self()->mOsdEnabled = v;
  1062. }
  1063.  
  1064. /**
  1065. Get Use On-Screen Display
  1066. */
  1067. static
  1068. bool osdEnabled()
  1069. {
  1070. return self()->mOsdEnabled;
  1071. }
  1072.  
  1073. /**
  1074. Set Use Growl for notifications
  1075. */
  1076. static
  1077. void setGrowlEnabled( bool v )
  1078. {
  1079. if (!self()->isImmutable( QString::fromLatin1 ( "GrowlEnabled" ) ))
  1080. self()->mGrowlEnabled = v;
  1081. }
  1082.  
  1083. /**
  1084. Get Use Growl for notifications
  1085. */
  1086. static
  1087. bool growlEnabled()
  1088. {
  1089. return self()->mGrowlEnabled;
  1090. }
  1091.  
  1092. /**
  1093. Set Display the same information in the OSD as in the playlist columns.
  1094. */
  1095. static
  1096. void setOsdUsePlaylistColumns( bool v )
  1097. {
  1098. if (!self()->isImmutable( QString::fromLatin1 ( "OsdUsePlaylistColumns" ) ))
  1099. self()->mOsdUsePlaylistColumns = v;
  1100. }
  1101.  
  1102. /**
  1103. Get Display the same information in the OSD as in the playlist columns.
  1104. */
  1105. static
  1106. bool osdUsePlaylistColumns()
  1107. {
  1108. return self()->mOsdUsePlaylistColumns;
  1109. }
  1110.  
  1111. /**
  1112. Set The OSD text to show
  1113. */
  1114. static
  1115. void setOsdText( const QString & v )
  1116. {
  1117. if (!self()->isImmutable( QString::fromLatin1 ( "OsdText" ) ))
  1118. self()->mOsdText = v;
  1119. }
  1120.  
  1121. /**
  1122. Get The OSD text to show
  1123. */
  1124. static
  1125. QString osdText()
  1126. {
  1127. return self()->mOsdText;
  1128. }
  1129.  
  1130. /**
  1131. Set Translucency Toggle
  1132. */
  1133. static
  1134. void setOsdUseTranslucency( bool v )
  1135. {
  1136. if (!self()->isImmutable( QString::fromLatin1 ( "OsdUseTranslucency" ) ))
  1137. self()->mOsdUseTranslucency = v;
  1138. }
  1139.  
  1140. /**
  1141. Get Translucency Toggle
  1142. */
  1143. static
  1144. bool osdUseTranslucency()
  1145. {
  1146. return self()->mOsdUseTranslucency;
  1147. }
  1148.  
  1149. /**
  1150. Set Whether to use custom colors for the OSD
  1151. */
  1152. static
  1153. void setOsdUseCustomColors( bool v )
  1154. {
  1155. if (!self()->isImmutable( QString::fromLatin1 ( "OsdUseCustomColors" ) ))
  1156. self()->mOsdUseCustomColors = v;
  1157. }
  1158.  
  1159. /**
  1160. Get Whether to use custom colors for the OSD
  1161. */
  1162. static
  1163. bool osdUseCustomColors()
  1164. {
  1165. return self()->mOsdUseCustomColors;
  1166. }
  1167.  
  1168. /**
  1169. Set Font Color for On-Screen Display
  1170. */
  1171. static
  1172. void setOsdTextColor( const QColor & v )
  1173. {
  1174. if (!self()->isImmutable( QString::fromLatin1 ( "OsdTextColor" ) ))
  1175. self()->mOsdTextColor = v;
  1176. }
  1177.  
  1178. /**
  1179. Get Font Color for On-Screen Display
  1180. */
  1181. static
  1182. QColor osdTextColor()
  1183. {
  1184. return self()->mOsdTextColor;
  1185. }
  1186.  
  1187. /**
  1188. Set How many milliseconds the text should be displayed for
  1189. */
  1190. static
  1191. void setOsdDuration( int v )
  1192. {
  1193. if (v < 0)
  1194. {
  1195. kDebug() << "setOsdDuration: value " << v << " is less than the minimum value of 0" << endl;
  1196. v = 0;
  1197. }
  1198. if (!self()->isImmutable( QString::fromLatin1 ( "OsdDuration" ) ))
  1199. self()->mOsdDuration = v;
  1200. }
  1201.  
  1202. /**
  1203. Get How many milliseconds the text should be displayed for
  1204. */
  1205. static
  1206. int osdDuration()
  1207. {
  1208. return self()->mOsdDuration;
  1209. }
  1210.  
  1211. /**
  1212. Set Y position offset
  1213. */
  1214. static
  1215. void setOsdYOffset( int v )
  1216. {
  1217. if (v < 0)
  1218. {
  1219. kDebug() << "setOsdYOffset: value " << v << " is less than the minimum value of 0" << endl;
  1220. v = 0;
  1221. }
  1222.  
  1223. if (v > 10000)
  1224. {
  1225. kDebug() << "setOsdYOffset: value " << v << " is greater than the maximum value of 10000" << endl;
  1226. v = 10000;
  1227. }
  1228.  
  1229. if (!self()->isImmutable( QString::fromLatin1 ( "OsdYOffset" ) ))
  1230. self()->mOsdYOffset = v;
  1231. }
  1232.  
  1233. /**
  1234. Get Y position offset
  1235. */
  1236. static
  1237. int osdYOffset()
  1238. {
  1239. return self()->mOsdYOffset;
  1240. }
  1241.  
  1242. /**
  1243. Set OSD screen
  1244. */
  1245. static
  1246. void setOsdScreen( int v )
  1247. {
  1248. if (!self()->isImmutable( QString::fromLatin1 ( "OsdScreen" ) ))
  1249. self()->mOsdScreen = v;
  1250. }
  1251.  
  1252. /**
  1253. Get OSD screen
  1254. */
  1255. static
  1256. int osdScreen()
  1257. {
  1258. return self()->mOsdScreen;
  1259. }
  1260.  
  1261. /**
  1262. Set Whether the album cover should be shown
  1263. */
  1264. static
  1265. void setOsdCover( bool v )
  1266. {
  1267. if (!self()->isImmutable( QString::fromLatin1 ( "OsdCover" ) ))
  1268. self()->mOsdCover = v;
  1269. }
  1270.  
  1271. /**
  1272. Get Whether the album cover should be shown
  1273. */
  1274. static
  1275. bool osdCover()
  1276. {
  1277. return self()->mOsdCover;
  1278. }
  1279.  
  1280. /**
  1281. Set Align OSD to
  1282. */
  1283. static
  1284. void setOsdAlignment( int v )
  1285. {
  1286. if (!self()->isImmutable( QString::fromLatin1 ( "OsdAlignment" ) ))
  1287. self()->mOsdAlignment = v;
  1288. }
  1289.  
  1290. /**
  1291. Get Align OSD to
  1292. */
  1293. static
  1294. int osdAlignment()
  1295. {
  1296. return self()->mOsdAlignment;
  1297. }
  1298.  
  1299. /**
  1300. Set Resume playback of last played track on startup
  1301. */
  1302. static
  1303. void setResumePlayback( bool v )
  1304. {
  1305. if (!self()->isImmutable( QString::fromLatin1 ( "ResumePlayback" ) ))
  1306. self()->mResumePlayback = v;
  1307. }
  1308.  
  1309. /**
  1310. Get Resume playback of last played track on startup
  1311. */
  1312. static
  1313. bool resumePlayback()
  1314. {
  1315. return self()->mResumePlayback;
  1316. }
  1317.  
  1318. /**
  1319. Set Track URL to resume upon startup
  1320. */
  1321. static
  1322. void setResumeTrack( const QString & v )
  1323. {
  1324. if (!self()->isImmutable( QString::fromLatin1 ( "ResumeTrack" ) ))
  1325. self()->mResumeTrack = v;
  1326. }
  1327.  
  1328. /**
  1329. Get Track URL to resume upon startup
  1330. */
  1331. static
  1332. QString resumeTrack()
  1333. {
  1334. return self()->mResumeTrack;
  1335. }
  1336.  
  1337. /**
  1338. Set Time to resume at, in milliseconds
  1339. */
  1340. static
  1341. void setResumeTime( int v )
  1342. {
  1343. if (!self()->isImmutable( QString::fromLatin1 ( "ResumeTime" ) ))
  1344. self()->mResumeTime = v;
  1345. }
  1346.  
  1347. /**
  1348. Get Time to resume at, in milliseconds
  1349. */
  1350. static
  1351. int resumeTime()
  1352. {
  1353. return self()->mResumeTime;
  1354. }
  1355.  
  1356. /**
  1357. Set List of bools describing which browsers are visible, from top to bottom.
  1358. */
  1359. static
  1360. void setVisibleBrowsers( const QList<int> & v )
  1361. {
  1362. if (!self()->isImmutable( QString::fromLatin1 ( "VisibleBrowsers" ) ))
  1363. self()->mVisibleBrowsers = v;
  1364. }
  1365.  
  1366. /**
  1367. Get List of bools describing which browsers are visible, from top to bottom.
  1368. */
  1369. static
  1370. QList<int> visibleBrowsers()
  1371. {
  1372. return self()->mVisibleBrowsers;
  1373. }
  1374.  
  1375. /**
  1376. Set Track playing on last exit. Value is -1 if no track was playing.
  1377. */
  1378. static
  1379. void setLastPlaying( int v )
  1380. {
  1381. if (!self()->isImmutable( QString::fromLatin1 ( "LastPlaying" ) ))
  1382. self()->mLastPlaying = v;
  1383. }
  1384.  
  1385. /**
  1386. Get Track playing on last exit. Value is -1 if no track was playing.
  1387. */
  1388. static
  1389. int lastPlaying()
  1390. {
  1391. return self()->mLastPlaying;
  1392. }
  1393.  
  1394. /**
  1395. Set Number (from the top) of the last active browser.
  1396. */
  1397. static
  1398. void setActiveBrowser( int v )
  1399. {
  1400. if (!self()->isImmutable( QString::fromLatin1 ( "ActiveBrowser" ) ))
  1401. self()->mActiveBrowser = v;
  1402. }
  1403.  
  1404. /**
  1405. Get Number (from the top) of the last active browser.
  1406. */
  1407. static
  1408. int activeBrowser()
  1409. {
  1410. return self()->mActiveBrowser;
  1411. }
  1412.  
  1413. /**
  1414. Set Whether Collections folders are scanned recursively
  1415. */
  1416. static
  1417. void setScanRecursively( bool v )
  1418. {
  1419. if (!self()->isImmutable( QString::fromLatin1 ( "ScanRecursively" ) ))
  1420. self()->mScanRecursively = v;
  1421. }
  1422.  
  1423. /**
  1424. Get Whether Collections folders are scanned recursively
  1425. */
  1426. static
  1427. bool scanRecursively()
  1428. {
  1429. return self()->mScanRecursively;
  1430. }
  1431.  
  1432. /**
  1433. Set Whether Collection folders are rescanned on change
  1434. */
  1435. static
  1436. void setMonitorChanges( bool v )
  1437. {
  1438. if (!self()->isImmutable( QString::fromLatin1 ( "MonitorChanges" ) ))
  1439. self()->mMonitorChanges = v;
  1440. }
  1441.  
  1442. /**
  1443. Get Whether Collection folders are rescanned on change
  1444. */
  1445. static
  1446. bool monitorChanges()
  1447. {
  1448. return self()->mMonitorChanges;
  1449. }
  1450.  
  1451. /**
  1452. Set List of folders in the Collection
  1453. */
  1454. static
  1455. void setCollectionFolders( const QStringList & v )
  1456. {
  1457. if (!self()->isImmutable( QString::fromLatin1 ( "CollectionFolders" ) ))
  1458. self()->mCollectionFolders = v;
  1459. }
  1460.  
  1461. /**
  1462. Get List of folders in the Collection
  1463. */
  1464. static
  1465. QStringList collectionFolders()
  1466. {
  1467. return self()->mCollectionFolders;
  1468. }
  1469.  
  1470. /**
  1471. Set Whether track numbers are shown in the collection browser.
  1472. */
  1473. static
  1474. void setShowTrackNumbers( bool v )
  1475. {
  1476. if (!self()->isImmutable( QString::fromLatin1 ( "ShowTrackNumbers" ) ))
  1477. self()->mShowTrackNumbers = v;
  1478. }
  1479.  
  1480. /**
  1481. Get Whether track numbers are shown in the collection browser.
  1482. */
  1483. static
  1484. bool showTrackNumbers()
  1485. {
  1486. return self()->mShowTrackNumbers;
  1487. }
  1488.  
  1489. /**
  1490. Set Whether years are shown in the collection browser.
  1491. */
  1492. static
  1493. void setShowYears( bool v )
  1494. {
  1495. if (!self()->isImmutable( QString::fromLatin1 ( "ShowYears" ) ))
  1496. self()->mShowYears = v;
  1497. }
  1498.  
  1499. /**
  1500. Get Whether years are shown in the collection browser.
  1501. */
  1502. static
  1503. bool showYears()
  1504. {
  1505. return self()->mShowYears;
  1506. }
  1507.  
  1508. /**
  1509. Set Whether to use Mozilla's Character Set Detector to try to guess ID3 tag encodings.
  1510. */
  1511. static
  1512. void setUseCharsetDetector( bool v )
  1513. {
  1514. if (!self()->isImmutable( QString::fromLatin1 ( "UseCharsetDetector" ) ))
  1515. self()->mUseCharsetDetector = v;
  1516. }
  1517.  
  1518. /**
  1519. Get Whether to use Mozilla's Character Set Detector to try to guess ID3 tag encodings.
  1520. */
  1521. static
  1522. bool useCharsetDetector()
  1523. {
  1524. return self()->mUseCharsetDetector;
  1525. }
  1526.  
  1527. /**
  1528. Set Submit played songs
  1529. */
  1530. static
  1531. void setSubmitPlayedSongs( bool v )
  1532. {
  1533. if (!self()->isImmutable( QString::fromLatin1 ( "SubmitPlayedSongs" ) ))
  1534. self()->mSubmitPlayedSongs = v;
  1535. }
  1536.  
  1537. /**
  1538. Get Submit played songs
  1539. */
  1540. static
  1541. bool submitPlayedSongs()
  1542. {
  1543. return self()->mSubmitPlayedSongs;
  1544. }
  1545.  
  1546. /**
  1547. Set Username
  1548. */
  1549. static
  1550. void setScrobblerUsername( const QString & v )
  1551. {
  1552. if (!self()->isImmutable( QString::fromLatin1 ( "ScrobblerUsername" ) ))
  1553. self()->mScrobblerUsername = v;
  1554. }
  1555.  
  1556. /**
  1557. Get Username
  1558. */
  1559. static
  1560. QString scrobblerUsername()
  1561. {
  1562. return self()->mScrobblerUsername;
  1563. }
  1564.  
  1565. /**
  1566. Set Password
  1567. */
  1568. static
  1569. void setScrobblerPassword( const QString & v )
  1570. {
  1571. if (!self()->isImmutable( QString::fromLatin1 ( "ScrobblerPassword" ) ))
  1572. self()->mScrobblerPassword = v;
  1573. }
  1574.  
  1575. /**
  1576. Get Password
  1577. */
  1578. static
  1579. QString scrobblerPassword()
  1580. {
  1581. return self()->mScrobblerPassword;
  1582. }
  1583.  
  1584. /**
  1585. Set Retrieve similar artists
  1586. */
  1587. static
  1588. void setRetrieveSimilarArtists( bool v )
  1589. {
  1590. if (!self()->isImmutable( QString::fromLatin1 ( "RetrieveSimilarArtists" ) ))
  1591. self()->mRetrieveSimilarArtists = v;
  1592. }
  1593.  
  1594. /**
  1595. Get Retrieve similar artists
  1596. */
  1597. static
  1598. bool retrieveSimilarArtists()
  1599. {
  1600. return self()->mRetrieveSimilarArtists;
  1601. }
  1602.  
  1603. /**
  1604. Set Device type
  1605. */
  1606. static
  1607. void setDeviceType( const QString & v )
  1608. {
  1609. if (!self()->isImmutable( QString::fromLatin1 ( "DeviceType" ) ))
  1610. self()->mDeviceType = v;
  1611. }
  1612.  
  1613. /**
  1614. Get Device type
  1615. */
  1616. static
  1617. QString deviceType()
  1618. {
  1619. return self()->mDeviceType;
  1620. }
  1621.  
  1622. /**
  1623. Set Mount point
  1624. */
  1625. static
  1626. void setMountPoint( const QString & v )
  1627. {
  1628. if (!self()->isImmutable( QString::fromLatin1 ( "MountPoint" ) ))
  1629. self()->mMountPoint = v;
  1630. }
  1631.  
  1632. /**
  1633. Get Mount point
  1634. */
  1635. static
  1636. QString mountPoint()
  1637. {
  1638. return self()->mMountPoint;
  1639. }
  1640.  
  1641. /**
  1642. Set Mount command
  1643. */
  1644. static
  1645. void setMountCommand( const QString & v )
  1646. {
  1647. if (!self()->isImmutable( QString::fromLatin1 ( "MountCommand" ) ))
  1648. self()->mMountCommand = v;
  1649. }
  1650.  
  1651. /**
  1652. Get Mount command
  1653. */
  1654. static
  1655. QString mountCommand()
  1656. {
  1657. return self()->mMountCommand;
  1658. }
  1659.  
  1660. /**
  1661. Set UmountCommand
  1662. */
  1663. static
  1664. void setUmountCommand( const QString & v )
  1665. {
  1666. if (!self()->isImmutable( QString::fromLatin1 ( "UmountCommand" ) ))
  1667. self()->mUmountCommand = v;
  1668. }
  1669.  
  1670. /**
  1671. Get UmountCommand
  1672. */
  1673. static
  1674. QString umountCommand()
  1675. {
  1676. return self()->mUmountCommand;
  1677. }
  1678.  
  1679. /**
  1680. Set Auto delete podcasts
  1681. */
  1682. static
  1683. void setAutoDeletePodcasts( bool v )
  1684. {
  1685. if (!self()->isImmutable( QString::fromLatin1 ( "AutoDeletePodcasts" ) ))
  1686. self()->mAutoDeletePodcasts = v;
  1687. }
  1688.  
  1689. /**
  1690. Get Auto delete podcasts
  1691. */
  1692. static
  1693. bool autoDeletePodcasts()
  1694. {
  1695. return self()->mAutoDeletePodcasts;
  1696. }
  1697.  
  1698. /**
  1699. Set Sync stats
  1700. */
  1701. static
  1702. void setSyncStats( bool v )
  1703. {
  1704. if (!self()->isImmutable( QString::fromLatin1 ( "SyncStats" ) ))
  1705. self()->mSyncStats = v;
  1706. }
  1707.  
  1708. /**
  1709. Get Sync stats
  1710. */
  1711. static
  1712. bool syncStats()
  1713. {
  1714. return self()->mSyncStats;
  1715. }
  1716.  
  1717. /**
  1718. Set Manually added servers
  1719. */
  1720. static
  1721. void setManuallyAddedServers( const QStringList & v )
  1722. {
  1723. if (!self()->isImmutable( QString::fromLatin1 ( "ManuallyAddedServers" ) ))
  1724. self()->mManuallyAddedServers = v;
  1725. }
  1726.  
  1727. /**
  1728. Get Manually added servers
  1729. */
  1730. static
  1731. QStringList manuallyAddedServers()
  1732. {
  1733. return self()->mManuallyAddedServers;
  1734. }
  1735.  
  1736. /**
  1737. Set Server passwords
  1738. */
  1739. static
  1740. void setServerPasswords( const QStringList & v )
  1741. {
  1742. if (!self()->isImmutable( QString::fromLatin1 ( "ServerPasswords" ) ))
  1743. self()->mServerPasswords = v;
  1744. }
  1745.  
  1746. /**
  1747. Get Server passwords
  1748. */
  1749. static
  1750. QStringList serverPasswords()
  1751. {
  1752. return self()->mServerPasswords;
  1753. }
  1754.  
  1755. /**
  1756. Set State of main window splitter
  1757. */
  1758. static
  1759. void setPanelsSavedState( const QList<int> & v )
  1760. {
  1761. if (!self()->isImmutable( QString::fromLatin1 ( "PanelsSavedState" ) ))
  1762. self()->mPanelsSavedState = v;
  1763. }
  1764.  
  1765. /**
  1766. Get State of main window splitter
  1767. */
  1768. static
  1769. QList<int> panelsSavedState()
  1770. {
  1771. return self()->mPanelsSavedState;
  1772. }
  1773.  
  1774. /**
  1775. Set Include track names in matching
  1776. */
  1777. static
  1778. void setMatchTrack( bool v )
  1779. {
  1780. if (!self()->isImmutable( QString::fromLatin1 ( "MatchTrack" ) ))
  1781. self()->mMatchTrack = v;
  1782. }
  1783.  
  1784. /**
  1785. Get Include track names in matching
  1786. */
  1787. static
  1788. bool matchTrack()
  1789. {
  1790. return self()->mMatchTrack;
  1791. }
  1792.  
  1793. /**
  1794. Set Include album names in matching
  1795. */
  1796. static
  1797. void setMatchAlbum( bool v )
  1798. {
  1799. if (!self()->isImmutable( QString::fromLatin1 ( "MatchAlbum" ) ))
  1800. self()->mMatchAlbum = v;
  1801. }
  1802.  
  1803. /**
  1804. Get Include album names in matching
  1805. */
  1806. static
  1807. bool matchAlbum()
  1808. {
  1809. return self()->mMatchAlbum;
  1810. }
  1811.  
  1812. /**
  1813. Set Include artist names in matching
  1814. */
  1815. static
  1816. void setMatchArtist( bool v )
  1817. {
  1818. if (!self()->isImmutable( QString::fromLatin1 ( "MatchArtist" ) ))
  1819. self()->mMatchArtist = v;
  1820. }
  1821.  
  1822. /**
  1823. Get Include artist names in matching
  1824. */
  1825. static
  1826. bool matchArtist()
  1827. {
  1828. return self()->mMatchArtist;
  1829. }
  1830.  
  1831. /**
  1832. Set Include genre names in matching
  1833. */
  1834. static
  1835. void setMatchGenre( bool v )
  1836. {
  1837. if (!self()->isImmutable( QString::fromLatin1 ( "MatchGenre" ) ))
  1838. self()->mMatchGenre = v;
  1839. }
  1840.  
  1841. /**
  1842. Get Include genre names in matching
  1843. */
  1844. static
  1845. bool matchGenre()
  1846. {
  1847. return self()->mMatchGenre;
  1848. }
  1849.  
  1850. /**
  1851. Set Include composer names in matching
  1852. */
  1853. static
  1854. void setMatchComposer( bool v )
  1855. {
  1856. if (!self()->isImmutable( QString::fromLatin1 ( "MatchComposer" ) ))
  1857. self()->mMatchComposer = v;
  1858. }
  1859.  
  1860. /**
  1861. Get Include composer names in matching
  1862. */
  1863. static
  1864. bool matchComposer()
  1865. {
  1866. return self()->mMatchComposer;
  1867. }
  1868.  
  1869. /**
  1870. Set Include years in matching
  1871. */
  1872. static
  1873. void setMatchYear( bool v )
  1874. {
  1875. if (!self()->isImmutable( QString::fromLatin1 ( "MatchYear" ) ))
  1876. self()->mMatchYear = v;
  1877. }
  1878.  
  1879. /**
  1880. Get Include years in matching
  1881. */
  1882. static
  1883. bool matchYear()
  1884. {
  1885. return self()->mMatchYear;
  1886. }
  1887.  
  1888. /**
  1889. Set Include years in matching
  1890. */
  1891. static
  1892. void setShowOnlyMatches( bool v )
  1893. {
  1894. if (!self()->isImmutable( QString::fromLatin1 ( "ShowOnlyMatches" ) ))
  1895. self()->mShowOnlyMatches = v;
  1896. }
  1897.  
  1898. /**
  1899. Get Include years in matching
  1900. */
  1901. static
  1902. bool showOnlyMatches()
  1903. {
  1904. return self()->mShowOnlyMatches;
  1905. }
  1906.  
  1907. /**
  1908. Set The name of the layout that will be loaded on startup
  1909. */
  1910. static
  1911. void setCurrentLayout( const QString & v )
  1912. {
  1913. if (!self()->isImmutable( QString::fromLatin1 ( "CurrentLayout" ) ))
  1914. self()->mCurrentLayout = v;
  1915. }
  1916.  
  1917. /**
  1918. Get The name of the layout that will be loaded on startup
  1919. */
  1920. static
  1921. QString currentLayout()
  1922. {
  1923. return self()->mCurrentLayout;
  1924. }
  1925.  
  1926. /**
  1927. Set Whether Amarok uses its own internal database, as opposed to an external engine.
  1928. */
  1929. static
  1930. void setUseServer( bool v )
  1931. {
  1932. if (!self()->isImmutable( QString::fromLatin1 ( "UseServer" ) ))
  1933. self()->mUseServer = v;
  1934. }
  1935.  
  1936. /**
  1937. Get Whether Amarok uses its own internal database, as opposed to an external engine.
  1938. */
  1939. static
  1940. bool useServer()
  1941. {
  1942. return self()->mUseServer;
  1943. }
  1944.  
  1945. /**
  1946. Set The hostname of the external server to connect to.
  1947. */
  1948. static
  1949. void setHost( const QString & v )
  1950. {
  1951. if (!self()->isImmutable( QString::fromLatin1 ( "Host" ) ))
  1952. self()->mHost = v;
  1953. }
  1954.  
  1955. /**
  1956. Get The hostname of the external server to connect to.
  1957. */
  1958. static
  1959. QString host()
  1960. {
  1961. return self()->mHost;
  1962. }
  1963.  
  1964. /**
  1965. Set Which server port to connect to the database engine.
  1966. */
  1967. static
  1968. void setPort( int v )
  1969. {
  1970. if (!self()->isImmutable( QString::fromLatin1 ( "Port" ) ))
  1971. self()->mPort = v;
  1972. }
  1973.  
  1974. /**
  1975. Get Which server port to connect to the database engine.
  1976. */
  1977. static
  1978. int port()
  1979. {
  1980. return self()->mPort;
  1981. }
  1982.  
  1983. /**
  1984. Set The name of the database Amarok will use. The user should have sufficient access permissions.
  1985. */
  1986. static
  1987. void setDatabase( const QString & v )
  1988. {
  1989. if (!self()->isImmutable( QString::fromLatin1 ( "Database" ) ))
  1990. self()->mDatabase = v;
  1991. }
  1992.  
  1993. /**
  1994. Get The name of the database Amarok will use. The user should have sufficient access permissions.
  1995. */
  1996. static
  1997. QString database()
  1998. {
  1999. return self()->mDatabase;
  2000. }
  2001.  
  2002. /**
  2003. Set Username used to access the external database.
  2004. */
  2005. static
  2006. void setUser( const QString & v )
  2007. {
  2008. if (!self()->isImmutable( QString::fromLatin1 ( "User" ) ))
  2009. self()->mUser = v;
  2010. }
  2011.  
  2012. /**
  2013. Get Username used to access the external database.
  2014. */
  2015. static
  2016. QString user()
  2017. {
  2018. return self()->mUser;
  2019. }
  2020.  
  2021. /**
  2022. Set Password for the external database user.
  2023. */
  2024. static
  2025. void setPassword( const QString & v )
  2026. {
  2027. if (!self()->isImmutable( QString::fromLatin1 ( "Password" ) ))
  2028. self()->mPassword = v;
  2029. }
  2030.  
  2031. /**
  2032. Get Password for the external database user.
  2033. */
  2034. static
  2035. QString password()
  2036. {
  2037. return self()->mPassword;
  2038. }
  2039.  
  2040. /**
  2041. Set Keeps a running count to know when run a CHECK.
  2042. */
  2043. static
  2044. void setCheckCount( int v )
  2045. {
  2046. if (!self()->isImmutable( QString::fromLatin1 ( "CheckCount" ) ))
  2047. self()->mCheckCount = v;
  2048. }
  2049.  
  2050. /**
  2051. Get Keeps a running count to know when run a CHECK.
  2052. */
  2053. static
  2054. int checkCount()
  2055. {
  2056. return self()->mCheckCount;
  2057. }
  2058.  
  2059. /**
  2060. Set Whether to automatically update built-in scripts
  2061. */
  2062. static
  2063. void setAutoUpdateScripts( bool v )
  2064. {
  2065. if (!self()->isImmutable( QString::fromLatin1 ( "AutoUpdateScripts" ) ))
  2066. self()->mAutoUpdateScripts = v;
  2067. }
  2068.  
  2069. /**
  2070. Get Whether to automatically update built-in scripts
  2071. */
  2072. static
  2073. bool autoUpdateScripts()
  2074. {
  2075. return self()->mAutoUpdateScripts;
  2076. }
  2077.  
  2078. /**
  2079. Set Whether to show the moodbar of the current track, if available, in the progress slider
  2080. */
  2081. static
  2082. void setShowMoodbarInSlider( bool v )
  2083. {
  2084. if (!self()->isImmutable( QString::fromLatin1 ( "ShowMoodbarInSlider" ) ))
  2085. self()->mShowMoodbarInSlider = v;
  2086. }
  2087.  
  2088. /**
  2089. Get Whether to show the moodbar of the current track, if available, in the progress slider
  2090. */
  2091. static
  2092. bool showMoodbarInSlider()
  2093. {
  2094. return self()->mShowMoodbarInSlider;
  2095. }
  2096.  
  2097. /**
  2098. Set The style to use when painting the moodbar
  2099. */
  2100. static
  2101. void setMoodbarPaintStyle( int v )
  2102. {
  2103. if (!self()->isImmutable( QString::fromLatin1 ( "MoodbarPaintStyle" ) ))
  2104. self()->mMoodbarPaintStyle = v;
  2105. }
  2106.  
  2107. /**
  2108. Get The style to use when painting the moodbar
  2109. */
  2110. static
  2111. int moodbarPaintStyle()
  2112. {
  2113. return self()->mMoodbarPaintStyle;
  2114. }
  2115.  
  2116. /**
  2117. Set Clickable locations' names
  2118. */
  2119. static
  2120. void setEnabledLinks( bool v )
  2121. {
  2122. if (!self()->isImmutable( QString::fromLatin1 ( "enabledLinks" ) ))
  2123. self()->mEnabledLinks = v;
  2124. }
  2125.  
  2126. /**
  2127. Get Clickable locations' names
  2128. */
  2129. static
  2130. bool enabledLinks()
  2131. {
  2132. return self()->mEnabledLinks;
  2133. }
  2134.  
  2135. /**
  2136. Set Timespan for upcoming events
  2137. */
  2138. static
  2139. void setTimeSpan( int v )
  2140. {
  2141. if (!self()->isImmutable( QString::fromLatin1 ( "timeSpan" ) ))
  2142. self()->mTimeSpan = v;
  2143. }
  2144.  
  2145. /**
  2146. Get Timespan for upcoming events
  2147. */
  2148. static
  2149. int timeSpan()
  2150. {
  2151. return self()->mTimeSpan;
  2152. }
  2153.  
  2154. /**
  2155. Set Maximum similar artists
  2156. */
  2157. static
  2158. void setMaxArtists( int v )
  2159. {
  2160. if (!self()->isImmutable( QString::fromLatin1 ( "maxArtists" ) ))
  2161. self()->mMaxArtists = v;
  2162. }
  2163.  
  2164. /**
  2165. Get Maximum similar artists
  2166. */
  2167. static
  2168. int maxArtists()
  2169. {
  2170. return self()->mMaxArtists;
  2171. }
  2172.  
  2173. protected:
  2174. AmarokConfig();
  2175. friend class AmarokConfigHelper;
  2176.  
  2177.  
  2178. // General Options
  2179. bool mLeftTimeDisplayEnabled;
  2180. bool mLeftTimeDisplayRemaining;
  2181. int mFavorTracks;
  2182. int mTrackProgression;
  2183. bool mDynamicMode;
  2184. int mPreviousTracks;
  2185. int mUpcomingTracks;
  2186. QString mLastDynamicMode;
  2187. bool mShowTrayIcon;
  2188. bool mHideContextView;
  2189. bool mAnimateTrayIcon;
  2190. int mTrackDelayLength;
  2191. int mUndoLevels;
  2192. bool mShowSplashscreen;
  2193. bool mRelativePlaylist;
  2194. QString mExternalBrowser;
  2195. bool mAutoGetCoverArt;
  2196. bool mAutoScrollPlaylist;
  2197. bool mShowAlbumArt;
  2198. bool mLockLayout;
  2199.  
  2200. // OrganizeCollectionDialog
  2201. bool mOverwriteFiles;
  2202. bool mGroupByFiletype;
  2203. bool mGroupArtists;
  2204. bool mIgnoreThe;
  2205. bool mReplaceSpace;
  2206. bool mCoverIcons;
  2207. QString mOrganizeDirectory;
  2208. bool mVfatCompatible;
  2209. bool mAsciiOnly;
  2210. bool mUseCustomScheme;
  2211. QString mCustomScheme;
  2212. QString mReplacementRegexp;
  2213. QString mReplacementString;
  2214. QString mMode;
  2215.  
  2216. // Playback
  2217. int mMasterVolume;
  2218. bool mMuteState;
  2219. bool mCrossfade;
  2220. int mCrossfadeLength;
  2221. int mCrossfadeType;
  2222. bool mFadeout;
  2223. int mFadeoutLength;
  2224. bool mFadeoutOnExit;
  2225. int mEqualizerMode;
  2226. QList<int> mEqualizerGains;
  2227. QStringList mEqualizerPresetsNames;
  2228. QList<int> mEqualizerPresestValues;
  2229. QStringList mDefEqualizerPresetsNames;
  2230. QList<int> mDefEqualizerPresestValues;
  2231. int mReplayGainMode;
  2232.  
  2233. // Cover Manager
  2234. QString mAmazonLocale;
  2235.  
  2236. // Wikipedia
  2237. QString mWikipediaLocale;
  2238.  
  2239. // KNotify
  2240. bool mKNotifyEnabled;
  2241.  
  2242. // OSD
  2243. bool mOsdEnabled;
  2244. bool mGrowlEnabled;
  2245. bool mOsdUsePlaylistColumns;
  2246. QString mOsdText;
  2247. bool mOsdUseTranslucency;
  2248. bool mOsdUseCustomColors;
  2249. QColor mOsdTextColor;
  2250. int mOsdDuration;
  2251. int mOsdYOffset;
  2252. int mOsdScreen;
  2253. bool mOsdCover;
  2254. int mOsdAlignment;
  2255.  
  2256. // Session
  2257. bool mResumePlayback;
  2258. QString mResumeTrack;
  2259. int mResumeTime;
  2260. QList<int> mVisibleBrowsers;
  2261. int mLastPlaying;
  2262. int mActiveBrowser;
  2263.  
  2264. // Collection
  2265. bool mScanRecursively;
  2266. bool mMonitorChanges;
  2267. QStringList mCollectionFolders;
  2268. bool mShowTrackNumbers;
  2269. bool mShowYears;
  2270. bool mUseCharsetDetector;
  2271.  
  2272. // Scrobbler
  2273. bool mSubmitPlayedSongs;
  2274. QString mScrobblerUsername;
  2275. QString mScrobblerPassword;
  2276. bool mRetrieveSimilarArtists;
  2277.  
  2278. // MediaDevice
  2279. QString mDeviceType;
  2280. QString mMountPoint;
  2281. QString mMountCommand;
  2282. QString mUmountCommand;
  2283. bool mAutoDeletePodcasts;
  2284. bool mSyncStats;
  2285.  
  2286. // Daap
  2287. QStringList mManuallyAddedServers;
  2288. QStringList mServerPasswords;
  2289.  
  2290. // Panel Sizes
  2291. QList<int> mPanelsSavedState;
  2292.  
  2293. // Playlist Search
  2294. bool mMatchTrack;
  2295. bool mMatchAlbum;
  2296. bool mMatchArtist;
  2297. bool mMatchGenre;
  2298. bool mMatchComposer;
  2299. bool mMatchYear;
  2300. bool mShowOnlyMatches;
  2301.  
  2302. // Playlist Layout
  2303. QString mCurrentLayout;
  2304.  
  2305. // MySQL
  2306. bool mUseServer;
  2307. QString mHost;
  2308. int mPort;
  2309. QString mDatabase;
  2310. QString mUser;
  2311. QString mPassword;
  2312. int mCheckCount;
  2313.  
  2314. // ScriptManager
  2315. bool mAutoUpdateScripts;
  2316.  
  2317. // Moodbar
  2318. bool mShowMoodbarInSlider;
  2319. int mMoodbarPaintStyle;
  2320.  
  2321. // UpcomingEvents
  2322. bool mEnabledLinks;
  2323. int mTimeSpan;
  2324.  
  2325. // SimilarArtists
  2326. int mMaxArtists;
  2327.  
  2328. private:
  2329. };
  2330.  
  2331. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement