This file is indexed.

/usr/include/phoneui/phoneui-utils.h is in libphone-ui-dev 1:0.0.1+git20110825-4.

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
/*
 *  Copyright (C) 2009, 2010
 *      Authors (alphabetical) :
 *		Tom "TAsn" Hacohen <tom@stosb.com>
 *		Klaus 'mrmoku' Kurzmann <mok@fluxnetz.de>
 *		Marco Trevisan (TreviƱo) <mail@3v1n0.net>
 *		Thomas Zimmermann <zimmermann@vdm-design.de>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
 */

#ifndef _PHONEUI_UTILS_H
#define _PHONEUI_UTILS_H
#include <glib.h>
#include <glib-object.h>
#include <freesmartphone.h>
#include "phoneui-utils-sound.h"


enum PhoneUiDialogType {
	PHONEUI_DIALOG_ERROR_DO_NOT_USE = 0,
	// This value is used for checking if we get a wrong pointer out of a HashTable.
	// So do not use it, and leave it first in this enum. ( because 0 == NULL )
	PHONEUI_DIALOG_MESSAGE_STORAGE_FULL,
	PHONEUI_DIALOG_SIM_NOT_PRESENT
};

enum PhoneuiSimStatus {
	PHONEUI_SIM_UNKNOWN,
	PHONEUI_SIM_READY,
	PHONEUI_SIM_PIN_REQUIRED,
	PHONEUI_SIM_PUK_REQUIRED,
	PHONEUI_SIM_PIN2_REQUIRED,
	PHONEUI_SIM_PUK2_REQUIRED
};

enum PhoneUiResource {
	PHONEUI_RESOURCE_GSM,
	PHONEUI_RESOURCE_BLUETOOTH,
	PHONEUI_RESOURCE_WIFI,
	PHONEUI_RESOURCE_DISPLAY,
	PHONEUI_RESOURCE_CPU,
	PHONEUI_RESOURCE_END /* must be last */
};

enum PhoneUiResourcePolicy {
	PHONEUI_RESOURCE_POLICY_ERROR,
	PHONEUI_RESOURCE_POLICY_DISABLED,
	PHONEUI_RESOURCE_POLICY_ENABLED,
	PHONEUI_RESOURCE_POLICY_AUTO
};
enum PhoneUiDeviceIdleState {
	PHONEUI_DEVICE_IDLE_STATE_BUSY,
	PHONEUI_DEVICE_IDLE_STATE_IDLE,
	PHONEUI_DEVICE_IDLE_STATE_IDLE_DIM,
	PHONEUI_DEVICE_IDLE_STATE_PRELOCK,
	PHONEUI_DEVICE_IDLE_STATE_LOCK,
	PHONEUI_DEVICE_IDLE_STATE_SUSPEND,
	PHONEUI_DEVICE_IDLE_STATE_AWAKE
};


enum PhoneUiPimDomain {
	PHONEUI_PIM_DOMAIN_CALLS,
	PHONEUI_PIM_DOMAIN_CONTACTS,
	PHONEUI_PIM_DOMAIN_DATES,
	PHONEUI_PIM_DOMAIN_MESSAGES,
	PHONEUI_PIM_DOMAIN_NOTES,
	PHONEUI_PIM_DOMAIN_TASKS,
};

void phoneui_utils_pim_query(enum PhoneUiPimDomain, const char *sortby, gboolean sortdesc, gboolean disjunction, int limit_start, int limit, gboolean resolve_number, const GHashTable *options, void (*callback)(GError *, GHashTable **, int, gpointer), gpointer data);

gchar *phoneui_utils_get_user_home_prefix();
gchar *phoneui_utils_get_user_home_code();

void phoneui_utils_set_message_receipt(gboolean _request_message_receipt);
gboolean phoneui_utils_get_message_receipt(void);

int phoneui_utils_sms_send(const char *message, GPtrArray * recipients, void (*callback)
		(GError *, int transaction_index, const char *timestamp, gpointer),
		  void *userdata);



void phoneui_utils_fields_types_get(void *callback, void *userdata);

void phoneui_utils_usage_suspend(void (*callback) (GError *, gpointer), void *userdata);
void phoneui_utils_usage_shutdown(void (*callback) (GError *, gpointer), void *userdata);

void phoneui_utils_idle_set_state(FreeSmartphoneDeviceIdleState state, void (*callback) (GError *, gpointer), gpointer userdata);

void phoneui_utils_resources_get_resource_policy(const char *name, void (*callback) (GError *, FreeSmartphoneUsageResourcePolicy, gpointer), gpointer userdata);
void phoneui_utils_resources_set_resource_policy(const char *name, FreeSmartphoneUsageResourcePolicy policy, void (*callback) (GError *, gpointer), gpointer userdata);

void phoneui_utils_calls_query(const char *sortby, gboolean sortdesc, gboolean disjunction, int limit_start, int limit, gboolean resolve_number, const GHashTable *options, void (*callback)(GError *, GHashTable **, int, gpointer), gpointer data);
void phoneui_utils_calls_get_full(const char *sortby, gboolean sortdesc, int limit_start, int limit, gboolean resolve_number, const char *direction, int answered, void (*callback) (GError *, GHashTable **, int, gpointer), gpointer data);
void phoneui_utils_calls_get(int *count, void (*callback) (GError *, GHashTable **, int, gpointer), void *_data);
int phoneui_utils_call_get(const char *call_path, void (*callback)(GError *, GHashTable*, gpointer), void *data);

void phoneui_utils_set_offline_mode(gboolean onoff, void (*callback)(GError *, gpointer userdata), gpointer userdata);
void phoneui_utils_get_offline_mode(void (*callback)(GError *, gboolean, gpointer userdata), gpointer userdata);

void phoneui_utils_pdp_activate_context(void (*callback)(GError *, gpointer userdata), gpointer userdata);
void phoneui_utils_pdp_deactivate_context(void (*callback)(GError *, gpointer userdata), gpointer userdata);
void phoneui_utils_pdp_get_credentials(void (*callback)(GError *, const char *, const char *, const char *, gpointer), gpointer data);

void phoneui_utils_set_pin(const char *pin, gboolean save, void (*callback)(GError *, gpointer), gpointer userdata);

void phoneui_utils_network_start_connection_sharing(const char *iface, void (*callback)(GError *, gpointer), gpointer data);
void phoneui_utils_network_stop_connection_sharing(const char *iface, void (*callback)(GError *, gpointer), gpointer data);

int phoneui_utils_init(GKeyFile *keyfile);
void phoneui_utils_deinit();

#endif