~ubuntu-branches/ubuntu/wily/apvlv/wily

« back to all changes in this revision

Viewing changes to src/ApvlvInfo.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-01 22:18:49 UTC
  • mfrom: (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110601221849-niibd5p5i7avemy4
Tags: 0.1.1-1.1
* Non-maintainer upload.
* Add support for poppler >= 0.15. Patch by Pino Toscano. (Closes: #627609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
using namespace std;
39
39
 
40
40
namespace apvlv
41
 
{
 
41
  {
42
42
  struct infofile
43
 
  {
44
 
    int page;
45
 
    double rate;
46
 
    string file;
47
 
  };
 
43
    {
 
44
      int page;
 
45
      int skip;
 
46
      double rate;
 
47
      string file;
 
48
    };
48
49
 
49
50
  class ApvlvInfo
50
 
  {
51
 
  public:
52
 
    ApvlvInfo (const char *file);
53
 
     ~ApvlvInfo ();
54
 
 
55
 
    bool update ();
56
 
 
57
 
    infofile *file (int);
58
 
    infofile *file (const char *);
59
 
    bool file (int, double, const char *);
60
 
 
61
 
  private:
 
51
    {
 
52
    public:
 
53
      ApvlvInfo (const char *file);
 
54
      ~ApvlvInfo ();
 
55
 
 
56
      bool update ();
 
57
 
 
58
      infofile *file (int);
 
59
      infofile *file (const char *);
 
60
      bool file (int, double, const char *, int);
 
61
 
 
62
    private:
62
63
      string mFileName;
63
64
 
64
 
    GSList *mFileHead;
65
 
    int mFileMax;
 
65
      GSList *mFileHead;
 
66
      int mFileMax;
66
67
 
67
 
    bool ini_add_position (const char *);
68
 
  };
 
68
      bool ini_add_position (const char *);
 
69
    };
69
70
 
70
71
  extern ApvlvInfo *gInfo;
71
72
};