This file is indexed.

/usr/include/k3bvcdoptions.h is in libk3b-dev 2.0.2-7ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
/*
 *
 * Copyright (C) 2003-2004 Christian Kvasny <chris@k3b.org>
 * Copyright (C) 2008 Sebastian Trueg <trueg@k3b.org>
 *
 * This file is part of the K3b project.
 * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * See the file "COPYING" for the exact licensing terms.
 */

#ifndef K3B_VCD_OPTIONS_H
#define K3B_VCD_OPTIONS_H

#include <qstring.h>
#include "k3b_export.h"

#include <kconfiggroup.h>


namespace K3b {
    class LIBK3B_EXPORT VcdOptions
    {
    public:
        VcdOptions();

        enum MPEGVersion {
            VCD11 = 0,
            VCD20 = 1,
            SVCD10 = 2,
            HQVCD10 = 3
        };

        QString volumeId() const
        {
            return m_volumeID;
        }
        QString albumId() const
        {
            return m_albumID;
        }
        QString volumeSetId() const
        {
            return m_volumeSetId;
        }
        QString preparer() const
        {
            return m_preparer;
        }
        QString publisher() const
        {
            return m_publisher;
        }

        QString applicationId() const
        {
            return m_applicationId;
        }
        QString systemId() const
        {
            return m_systemId;
        }

        QString vcdClass() const
        {
            return m_vcdclass;
        }
        QString vcdVersion() const
        {
            return m_vcdversion;
        }

        int PreGapLeadout()
        {
            return m_pregapleadout;
        }
        int PreGapTrack()
        {
            return m_pregaptrack;
        }
        int FrontMarginTrack()
        {
            return m_frontmargintrack;
        }
        int RearMarginTrack()
        {
            return m_rearmargintrack;
        }
        int FrontMarginTrackSVCD()
        {
            return m_frontmargintrackSVCD;
        }
        int RearMarginTrackSVCD()
        {
            return m_rearmargintrackSVCD;
        }

        MPEGVersion mpegVersion() const
        {
            return m_mpegversion;
        }

        int volumeCount() const
        {
            return m_volumeCount;
        }
        int volumeNumber() const
        {
            return m_volumeNumber;
        }

        bool AutoDetect() const
        {
            return m_autodetect;
        }
        bool CdiSupport() const
        {
            return m_cdisupport;
        }
        bool NonCompliantMode() const
        {
            return m_brokensvcdmode;
        }
        bool VCD30interpretation() const
        {
            return m_VCD30interpretation;
        }
        bool Sector2336() const
        {
            return m_sector2336;
        }
        bool UpdateScanOffsets() const
        {
            return m_updatescanoffsets;
        }
        bool RelaxedAps() const
        {
            return m_relaxedaps;
        }
        bool UseGaps() const
        {
            return m_usegaps;
        }
        unsigned long long CDIsize() const
        {
            return m_cdisize;
        }

        void setAlbumId( const QString& s )
        {
            m_albumID = s;
        }
        void setVolumeId( const QString& s )
        {
            m_volumeID = s;
        }
        void setVolumeSetId( const QString& s )
        {
            m_volumeSetId = s;
        }
        void setPreparer( const QString& s )
        {
            m_preparer = s;
        }
        void setPublisher( const QString& s )
        {
            m_publisher = s;
        }

        void setVcdClass( const QString& s )
        {
            m_vcdclass = s;
        }
        void setVcdVersion( const QString& s )
        {
            m_vcdversion = s;
        }

        void setPreGapLeadout( int i )
        {
            m_pregapleadout = i;
        }
        void setPreGapTrack( int i )
        {
            m_pregaptrack = i;
        }
        void setFrontMarginTrack( int i )
        {
            m_frontmargintrack = i;
        }
        void setRearMarginTrack( int i )
        {
            m_rearmargintrack = i;
        }
        void setFrontMarginTrackSVCD( int i )
        {
            m_frontmargintrackSVCD = i;
        }
        void setRearMarginTrackSVCD( int i )
        {
            m_rearmargintrackSVCD = i;
        }

        void setMpegVersion( MPEGVersion v )
        {
            m_mpegversion = v;
        }
        void setVolumeCount( int c )
        {
            m_volumeCount = c;
        }
        void setVolumeNumber( int n )
        {
            m_volumeNumber = n;
        }

        void setAutoDetect( bool b )
        {
            m_autodetect = b;
        }
        void setCdiSupport( bool b )
        {
            m_cdisupport = b;
        }
        void setNonCompliantMode( bool b )
        {
            m_brokensvcdmode = b;
        }
        void setVCD30interpretation( bool b )
        {
            m_VCD30interpretation = b;
        }
        void setSector2336( bool b )
        {
            m_sector2336 = b;
        }
        void setUpdateScanOffsets( bool b )
        {
            m_updatescanoffsets = b;
        }
        void setRelaxedAps( bool b )
        {
            m_relaxedaps = b;
        }
        void setUseGaps( bool b )
        {
            m_usegaps = b;
        }

        bool checkCdiFiles();
        void save( KConfigGroup c );

        static VcdOptions load( const KConfigGroup& c );
        static VcdOptions defaults();

        void setPbcEnabled( bool b )
        {
            m_pbcenabled = b;
        }
        bool PbcEnabled() const
        {
            return m_pbcenabled;
        };
        void setPbcNumkeysEnabled( bool b )
        {
            m_pbcnumkeysenabled = b;
        }
        bool PbcNumkeysEnabled() const
        {
            return m_pbcnumkeysenabled;
        };

        void setPbcPlayTime( int i )
        {
            m_def_pbcplaytime = i;
        }
        int PbcPlayTime( )
        {
            return m_def_pbcplaytime;
        }

        void setPbcWaitTime( int i )
        {
            m_def_pbcwaittime = i;
        }
        int PbcWaitTime( )
        {
            return m_def_pbcwaittime;
        }

        void setSegmentFolder( bool b )
        {
            m_segmentfolder = b;
        }
        bool SegmentFolder() const
        {
            return m_segmentfolder;
        };

        void setRestriction( int i )
        {
            m_restriction = i;
        }
        int Restriction() const
        {
            return m_restriction;
        };
        void increaseSegments( )
        {
            m_segment += 1;
        }
        void decreaseSegments( )
        {
            m_segment -= 1;
        }
        bool haveSegments() const
        {
            return m_segment > 0;
        };
        void increaseSequence( )
        {
            m_sequence += 1;
        }
        void decreaseSequence( )
        {
            m_sequence -= 1;
        }

        bool haveSequence() const
        {
            return m_sequence > 0;
        }

    private:
        int m_restriction;
        int m_segment;
        int m_sequence;

        // pbc
        bool m_pbcenabled;
        bool m_pbcnumkeysenabled;

        // volume descriptor
        QString m_volumeID;
        QString m_albumID;
        QString m_volumeSetId;

        QString m_preparer;
        QString m_publisher;

        QString m_applicationId;
        QString m_systemId;

        QString m_vcdclass;
        QString m_vcdversion;

        int m_pregapleadout;
        int m_pregaptrack;
        int m_frontmargintrack;
        int m_rearmargintrack;
        int m_frontmargintrackSVCD;
        int m_rearmargintrackSVCD;

        MPEGVersion m_mpegversion;
        int m_volumeCount;
        int m_volumeNumber;

        bool m_autodetect;
        bool m_cdisupport;
        bool m_brokensvcdmode;
        bool m_VCD30interpretation;
        bool m_sector2336;
        bool m_updatescanoffsets;
        bool m_relaxedaps;
        bool m_segmentfolder;
        bool m_usegaps;

        int m_def_pbcplaytime;
        int m_def_pbcwaittime;
        unsigned long long m_cdisize;
    };
}

#endif