nsIPlacesTransactionsService.idl
Go to the documentation of this file.
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  * http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * The Original Code is Places.
16  *
17  * The Initial Developer of the Original Code is Mozilla Corporation
18  *
19  * Portions created by the Initial Developer are Copyright (C) 2007
20  * the Initial Developer. All Rights Reserved.
21  *
22  * Contributor(s):
23  * Sungjoon Steve Won <stevewon@gmail.com> (Original Author)
24  * Asaf Romano <mano@mozilla.com>
25  *
26  * Alternatively, the contents of this file may be used under the terms of
27  * either the GNU General Public License Version 2 or later (the "GPL"), or
28  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29  * in which case the provisions of the GPL or the LGPL are applicable instead
30  * of those above. If you wish to allow use of your version of this file only
31  * under the terms of either the GPL or the LGPL, and not to allow others to
32  * use your version of this file under the terms of the MPL, indicate your
33  * decision by deleting the provisions above and replace them with the notice
34  * and other provisions required by the GPL or the LGPL. If you do not delete
35  * the provisions above, a recipient may use your version of this file under
36  * the terms of any one of the MPL, the GPL or the LGPL.
37  *
38  * ***** END LICENSE BLOCK ***** */
39 
40 #include "nsISupports.idl"
41 #include "nsITransactionManager.idl"
42 
43 interface nsIVariant;
44 interface nsIURI;
45 interface nsIMicrosummary;
46 interface nsITransaction;
47 
59 [scriptable, uuid(32eee5da-2bc7-4d18-8a54-a8ff0dec4d2a)]
60 interface nsIPlacesTransactionsService : nsITransactionManager
61 {
71  nsITransaction aggregateTransactions(in AString aName,
72  in nsIVariant aTransactions);
73 
91  nsITransaction createFolder(in AString aName, in long long aContainerId,
92  [optional] in long long aIndex,
93  [optional] in nsIVariant aAnnotations,
94  [optional] in nsIVariant aChildItemsTransactions);
95 
121  nsITransaction createItem(in nsIURI aURI, in long long aContainerId,
122  [optional] in long long aIndex,
123  [optional] in AString aTitle,
124  [optional] in AString aKeyword,
125  [optional] in nsIVariant aAnnotations,
126  [optional] in nsIVariant aChildTransactions);
127 
139  nsITransaction createSeparator(in long long aContainerId,
140  [optional] in long long aIndex);
141 
158  nsITransaction createLivemark(in nsIURI aFeedURI,
159  in nsIURI aSiteURI,
160  in AString aName,
161  in long long aContainerId,
162  [optional] in long long aIndex,
163  [optional] in nsIVariant aAnnotations);
164 
176  nsITransaction moveItem(in long long aItemId,
177  in long long aNewContainerId,
178  in long long aNewIndex);
179 
187  nsITransaction removeItem(in long long aItemId);
188 
198  nsITransaction editItemTitle(in long long aItemId, in AString aNewTitle);
199 
209  nsITransaction editBookmarkURI(in long long aBookmarkId, in nsIURI aNewURI);
210 
223  nsITransaction setItemAnnotation(in nsIVariant aItemId,
224  in nsIVariant aAnnotationObject);
225 
238  nsITransaction setPageAnnotation(in nsIURI aURI,
239  in nsIVariant aAnnotationObject);
240 
250  nsITransaction setLoadInSidebar(in long long aBookmarkId,
251  in boolean aLoadInSidebar);
252 
262  nsITransaction editItemDescription(in long long aItemId,
263  in AString aDescription);
264 
274  nsITransaction editBookmarkKeyword(in long long aBookmarkId,
275  in AString aNewKeyword);
276 
286  nsITransaction editBookmarkPostData(in long long aBookmarkId,
287  in AString aPostData);
288 
298  nsITransaction editLivemarkSiteURI(in long long aLivemarkId, in nsIURI aURI);
299 
309  nsITransaction editLivemarkFeedURI(in long long aLivemarkId, in nsIURI aURI);
310 
320  nsITransaction editBookmarkMicrosummary(in long long aBookmarkId,
321  in nsIMicrosummary aNewMicrosummary);
322 
332  nsITransaction editItemDateAdded(in long long aItemId,
333  in PRTime aNewDateAdded);
334 
344  nsITransaction editItemLastModified(in long long aItemId,
345  in PRTime aNewLastModified);
346 
354  nsITransaction sortFolderByName(in long long aFolderId);
355 
367  nsITransaction tagURI(in nsIURI aURI, in nsIVariant aTags);
368 
380  nsITransaction untagURI(in nsIURI aURI, in nsIVariant aTags);
381 };
nsITransaction setItemAnnotation(in nsIVariant aItemId, in nsIVariant aAnnotationObject)
nsITransaction createFolder(in AString aName, in long long aContainerId, [optional] in long long aIndex, [optional] in nsIVariant aAnnotations, [optional] in nsIVariant aChildItemsTransactions)
nsITransaction createSeparator(in long long aContainerId, [optional] in long long aIndex)
nsITransaction tagURI(in nsIURI aURI, in nsIVariant aTags)
var uuid
nsITransaction removeItem(in long long aItemId)
nsITransaction editLivemarkFeedURI(in long long aLivemarkId, in nsIURI aURI)
nsITransaction editBookmarkURI(in long long aBookmarkId, in nsIURI aNewURI)
nsITransaction editLivemarkSiteURI(in long long aLivemarkId, in nsIURI aURI)
nsITransaction editBookmarkKeyword(in long long aBookmarkId, in AString aNewKeyword)
nsITransaction editItemLastModified(in long long aItemId, in PRTime aNewLastModified)
nsITransaction editItemDescription(in long long aItemId, in AString aDescription)
nsITransaction editItemDateAdded(in long long aItemId, in PRTime aNewDateAdded)
nsITransaction createItem(in nsIURI aURI, in long long aContainerId, [optional] in long long aIndex, [optional] in AString aTitle, [optional] in AString aKeyword, [optional] in nsIVariant aAnnotations, [optional] in nsIVariant aChildTransactions)
nsITransaction aggregateTransactions(in AString aName, in nsIVariant aTransactions)
_updateCookies aName
nsITransaction untagURI(in nsIURI aURI, in nsIVariant aTags)
nsITransaction setPageAnnotation(in nsIURI aURI, in nsIVariant aAnnotationObject)
nsITransaction moveItem(in long long aItemId, in long long aNewContainerId, in long long aNewIndex)
nsITransaction editItemTitle(in long long aItemId, in AString aNewTitle)
nsITransaction createLivemark(in nsIURI aFeedURI, in nsIURI aSiteURI, in AString aName, in long long aContainerId, [optional] in long long aIndex, [optional] in nsIVariant aAnnotations)
nsITransaction editBookmarkMicrosummary(in long long aBookmarkId, in nsIMicrosummary aNewMicrosummary)
nsITransaction setLoadInSidebar(in long long aBookmarkId, in boolean aLoadInSidebar)
nsITransaction sortFolderByName(in long long aFolderId)
nsITransaction editBookmarkPostData(in long long aBookmarkId, in AString aPostData)