gecko-dev/xpfc/shell/public/nsIXPFCDataCollectionManager.h

73 строки
2.4 KiB
C
Исходник Обычный вид История

1998-10-31 03:55:23 +03:00
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
1998-10-31 03:55:23 +03:00
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
1998-10-31 03:55:23 +03:00
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
1998-10-31 03:55:23 +03:00
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
1998-10-31 03:55:23 +03:00
*/
#ifndef nsIXPFCDataCollectionManager_h___
#define nsIXPFCDataCollectionManager_h___
#include "nsISupports.h"
#include "nsIXPFCCommandReceiver.h"
#include "nsString.h"
#include "nsVoidArray.h"
class nsIXPFCDataCollection;
class nsIApplicationShell;
1998-11-10 05:27:51 +03:00
class nsIShellInstance;
1998-10-31 03:55:23 +03:00
//a2e85d80-5ca8-11d2-80a1-00600832d688
#define NS_IXPFCDATACOLLECTION_MANAGER_IID \
{ 0xa2e85d80, 0x5ca8, 0x11d2, \
{ 0x80, 0xa1, 0x00, 0x60, 0x08, 0x32, 0xd6, 0x88 } }
//8ea29570-6923-11d2-80a3-00600832d688
#define NS_ICOLLECED_MANAGER_IID \
{ 0x8ea29570, 0x6923, 0x11d2, \
{ 0x80, 0xa3, 0x00, 0x60, 0x08, 0x32, 0xd6, 0x88 } }
typedef struct CollectedData
{
nsString LabelName;
nsString Value;
} *CollectedDataPtr;
class nsICollectedData : public nsISupports
{
public:
NS_IMETHOD Init() = 0 ;
NS_IMETHOD FindValueInCollectedData(nsString& Label, nsString& result) = 0;
NS_IMETHOD_(nsVoidArray*) GetDataArray() = 0;
NS_IMETHOD_(nsString) GetDataHandlerType() = 0;
NS_IMETHOD SetDataHandlerType(nsString& TypeString) = 0;
};
class nsIXPFCDataCollectionManager : public nsISupports
{
public:
NS_IMETHOD Init() = 0 ;
NS_IMETHOD AddDataCollection(nsString& DataHandlerName, nsIApplicationShell *aHostShell) = 0;
NS_IMETHOD CallDataHandler(nsString& DataHandlerName, nsICollectedData* TheCollectedData) = 0;
};
#endif /* nsIXPFCToolbarManager_h___ */