Mercurial > cgi-bin > hgweb.cgi > ClipMan
comparison src/name/blackcap/clipman/PasteboardQueue.kt @ 41:33fbe3a78d84
Got the settings stuff compiling (untested).
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 08 Feb 2020 22:10:01 -0700 |
parents | c803a2c89ea0 |
children | 88066346f129 |
comparison
equal
deleted
inserted
replaced
40:c803a2c89ea0 | 41:33fbe3a78d84 |
---|---|
42 * larger than this size, or specifying a size smaller than the current | 42 * larger than this size, or specifying a size smaller than the current |
43 * size, will result in the oldest item(s) being discarded. A size less | 43 * size, will result in the oldest item(s) being discarded. A size less |
44 * than or equal to zero means an unlimited size. | 44 * than or equal to zero means an unlimited size. |
45 */ | 45 */ |
46 var maxSize: Int | 46 var maxSize: Int |
47 get() { return _maxSize } | 47 get() { return _maxSize } |
48 @Synchronized set(value) { | 48 @Synchronized set(value) { |
49 _maxSize = value | 49 _maxSize = value |
50 truncate() | 50 truncate() |
51 } | 51 } |
52 | 52 |
53 /** | 53 /** |
54 * Add a QueueItem to the end of the queue. | 54 * Add a QueueItem to the end of the queue. |
55 * @param item QueueItem to add | 55 * @param item QueueItem to add |
56 */ | 56 */ |