Added maevies service support
[maevies] / src / schedule_provider.h
1 /*
2  * schedule_provider.h
3  *
4  * This file is part of maevies
5  * Copyright (C) 2009 Gervasio Varela <gervarela@picandocodigo.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  */
18
19 #ifndef SCHEDULE_PROVIDER_H_
20 #define SCHEDULE_PROVIDER_H_
21
22 #include <glib.h>
23 #include "maevies_theater.h"
24 #include "maevies_movieschedule.h"
25
26
27 /** Retrieves the schedule of a given movie near a given geographical
28  * area (city, state, GPS coordiantes, etc.).
29  * @param movie The movie whose schedule is required
30  * @param where A string reprensenting a city, a state, GPS coordiantes 
31  *                              to search for theaters near it
32  * @return A list of MaeviesMovieSchedule objects
33  **/
34 GSList* get_movie_schedule_near_city(MaeviesMovie* movie, gchar* where);
35
36
37 /** Retrieves the movies available to watch near a given a geographical
38  * area (city, state, GPS coordinates, etc.).
39  * @param where A string reprensenting a city, a state, GPS coordiantes 
40  *                              to search for theaters near it
41  * @return A list of MaeviesMovie objects
42  **/
43 GSList* get_shedule_near_city(gchar* where);
44
45
46
47 #endif /* SCHEDULE_PROVIDER_H_ */