This file is indexed.

/usr/share/idl/thunderbird/calIGoogleRequest.idl is in thunderbird-dev 1:24.4.0+build1-0ubuntu1.

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
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "calIOperation.idl"

interface calICalendar;
interface calIGoogleSession;
interface calIGoogleCalendar;
interface calIGenericOperationListener;
interface calIOperationListener;
interface calIDateTime;
interface calIItemBase;

interface nsIVariant;

[scriptable, uuid(53a3438a-21bc-4a0f-b813-77a8b4f19282)]
interface calIGoogleRequest : calIOperation {

    const unsigned long LOGIN = 0;
    const unsigned long ADD = 1;
    const unsigned long MODIFY = 2;
    const unsigned long DELETE = 3;
    const unsigned long GET = 4;

    /**
     * The type of request. Must be one of the above constants.
     */
    attribute uint32_t type;

    /**
     * The request uri string
     */
    attribute AUTF8String uri;

    /**
     * The operation listener. This is not called by the request object, but can
     * be used by the response listener to call the original listener that
     * caused the request
     */
    attribute calIOperationListener operationListener;

    /**
     * The response listener. This will be called as soon as the request to
     * google has completed.
     */
    attribute calIGenericOperationListener responseListener;

    /**
     * The calendar that initiated the request
     */
    attribute calIGoogleCalendar calendar;

    /**
     * The destination calendar, used for synchronization runs.
     */
    attribute calICalendar destinationCal;

    /**
     * If set to false, an authentication failure should not cause any dialogs
     * to show up that cause reauthentication, but the failure should be
     * returned directly.
     *
     * This attribute defaults to true.
     */
    attribute boolean reauthenticate;

    /**
     * Various options to be carried through to the response listener.
     * XXX The corresponding options are not set up automatically just by
     * setting these options. You still need to use addQueryParameter to filter
     * by item range or other property.
     */
    attribute calIDateTime itemRangeStart;
    attribute calIDateTime itemRangeEnd;
    attribute unsigned long itemFilter;
    attribute AUTF8String itemId;
    attribute boolean useCache;

    /**
     * For add/modify/delete item requests, these contain the old and new items.
     */
    attribute calIItemBase newItem;
    attribute calIItemBase oldItem;

    /**
     * Set up some upload data using the given content type
     *
     * @param aContentType      The value of the content type header to be set.
     * @param aData             The Data to be uploaded.
     */
    void setUploadData(in AUTF8String aContentType, in AUTF8String aData);

    /**
     * Adds a query parameter to the request. These will be escaped.
     *
     * @param aKey      The key of the query parameter.
     * @param aValue    The value of the query parameter.
     */
    void addQueryParameter(in AUTF8String aKey, in AUTF8String aValue);

    /**
     * Run the request, using the specified session.
     *
     * @param aSession      The session to request with.
     */
    void commit(in calIGoogleSession aSession);

    /**
     * Tell listeners that the operation failed
     *
     * @param aCode     The error code to use.
     * @param aMessage  The error message to use.
     */
    void fail(in uint32_t aCode, in AUTF8String aMessage);

    /**
     * Tell listeners that the operation succeeded.
     *
     * @param aMessage  The error message to use.
     */
    void succeed(in AUTF8String aMessage);
};