Blame libmm-glib/mm-location-cdma-bs.h

Packit Service 8101fe
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
Packit Service 8101fe
/*
Packit Service 8101fe
 * This program is free software; you can redistribute it and/or modify
Packit Service 8101fe
 * it under the terms of the GNU General Public License as published by
Packit Service 8101fe
 * the Free Software Foundation; either version 2 of the License, or
Packit Service 8101fe
 * (at your option) any later version.
Packit Service 8101fe
 *
Packit Service 8101fe
 * This program is distributed in the hope that it will be useful,
Packit Service 8101fe
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 8101fe
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 8101fe
 * GNU General Public License for more details:
Packit Service 8101fe
 *
Packit Service 8101fe
 * Copyright (C) 2012 Lanedo GmbH <aleksander@lanedo.com>
Packit Service 8101fe
 */
Packit Service 8101fe
Packit Service 8101fe
#ifndef MM_LOCATION_CDMA_BS_H
Packit Service 8101fe
#define MM_LOCATION_CDMA_BS_H
Packit Service 8101fe
Packit Service 8101fe
#if !defined (__LIBMM_GLIB_H_INSIDE__) && !defined (LIBMM_GLIB_COMPILATION)
Packit Service 8101fe
#error "Only <libmm-glib.h> can be included directly."
Packit Service 8101fe
#endif
Packit Service 8101fe
Packit Service 8101fe
#include <ModemManager.h>
Packit Service 8101fe
#include <glib-object.h>
Packit Service 8101fe
Packit Service 8101fe
#include "mm-location-common.h"
Packit Service 8101fe
Packit Service 8101fe
G_BEGIN_DECLS
Packit Service 8101fe
Packit Service 8101fe
#define MM_TYPE_LOCATION_CDMA_BS            (mm_location_cdma_bs_get_type ())
Packit Service 8101fe
#define MM_LOCATION_CDMA_BS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_LOCATION_CDMA_BS, MMLocationCdmaBs))
Packit Service 8101fe
#define MM_LOCATION_CDMA_BS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  MM_TYPE_LOCATION_CDMA_BS, MMLocationCdmaBsClass))
Packit Service 8101fe
#define MM_IS_LOCATION_CDMA_BS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_LOCATION_CDMA_BS))
Packit Service 8101fe
#define MM_IS_LOCATION_CDMA_BS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  MM_TYPE_LOCATION_CDMA_BS))
Packit Service 8101fe
#define MM_LOCATION_CDMA_BS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  MM_TYPE_LOCATION_CDMA_BS, MMLocationCdmaBsClass))
Packit Service 8101fe
Packit Service 8101fe
typedef struct _MMLocationCdmaBs MMLocationCdmaBs;
Packit Service 8101fe
typedef struct _MMLocationCdmaBsClass MMLocationCdmaBsClass;
Packit Service 8101fe
typedef struct _MMLocationCdmaBsPrivate MMLocationCdmaBsPrivate;
Packit Service 8101fe
Packit Service 8101fe
/**
Packit Service 8101fe
 * MMLocationCdmaBs:
Packit Service 8101fe
 *
Packit Service 8101fe
 * The #MMLocationCdmaBs structure contains private data and should
Packit Service 8101fe
 * only be accessed using the provided API.
Packit Service 8101fe
 */
Packit Service 8101fe
struct _MMLocationCdmaBs {
Packit Service 8101fe
    /*< private >*/
Packit Service 8101fe
    GObject parent;
Packit Service 8101fe
    MMLocationCdmaBsPrivate *priv;
Packit Service 8101fe
};
Packit Service 8101fe
Packit Service 8101fe
struct _MMLocationCdmaBsClass {
Packit Service 8101fe
    /*< private >*/
Packit Service 8101fe
    GObjectClass parent;
Packit Service 8101fe
};
Packit Service 8101fe
Packit Service 8101fe
GType mm_location_cdma_bs_get_type (void);
Packit Service 8101fe
Packit Service 8101fe
#if GLIB_CHECK_VERSION(2, 44, 0)
Packit Service 8101fe
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMLocationCdmaBs, g_object_unref)
Packit Service 8101fe
#endif
Packit Service 8101fe
Packit Service 8101fe
gdouble mm_location_cdma_bs_get_longitude (MMLocationCdmaBs *self);
Packit Service 8101fe
gdouble mm_location_cdma_bs_get_latitude  (MMLocationCdmaBs *self);
Packit Service 8101fe
Packit Service 8101fe
/*****************************************************************************/
Packit Service 8101fe
/* ModemManager/libmm-glib/mmcli specific methods */
Packit Service 8101fe
Packit Service 8101fe
#if defined (_LIBMM_INSIDE_MM) ||    \
Packit Service 8101fe
    defined (_LIBMM_INSIDE_MMCLI) || \
Packit Service 8101fe
    defined (LIBMM_GLIB_COMPILATION)
Packit Service 8101fe
Packit Service 8101fe
MMLocationCdmaBs *mm_location_cdma_bs_new (void);
Packit Service 8101fe
MMLocationCdmaBs *mm_location_cdma_bs_new_from_dictionary (GVariant *string,
Packit Service 8101fe
                                                           GError **error);
Packit Service 8101fe
Packit Service 8101fe
gboolean mm_location_cdma_bs_set (MMLocationCdmaBs *self,
Packit Service 8101fe
                                  gdouble longitude,
Packit Service 8101fe
                                  gdouble latitude);
Packit Service 8101fe
Packit Service 8101fe
GVariant *mm_location_cdma_bs_get_dictionary (MMLocationCdmaBs *self);
Packit Service 8101fe
Packit Service 8101fe
#endif
Packit Service 8101fe
Packit Service 8101fe
G_END_DECLS
Packit Service 8101fe
Packit Service 8101fe
#endif /* MM_LOCATION_CDMA_BS_H */