1 /*
2  * cue-cache.h
3  * Copyright 2016 John Lindgren
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  *    this list of conditions, and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  *    this list of conditions, and the following disclaimer in the documentation
13  *    provided with the distribution.
14  *
15  * This software is provided "as is" and without any warranty, express or
16  * implied. In no event shall the authors be liable for any damages arising from
17  * the use of this software.
18  */
19 
20 #ifndef LIBAUDCORE_CUE_CACHE_H
21 #define LIBAUDCORE_CUE_CACHE_H
22 
23 #include "index.h"
24 #include "tuple.h"
25 
26 struct CueCacheNode;
27 
28 class CueCacheRef
29 {
30 public:
31     CueCacheRef(const char * filename);
32     ~CueCacheRef();
33 
34     const Index<PlaylistAddItem> & load();
35 
36 private:
37     String m_filename;
38     CueCacheNode * m_node;
39 };
40 
41 #endif // LIBAUDCORE_CUE_CACHE_H
42