Checking in new method of ab card additions - r: chuang
git-svn-id: svn://10.0.0.236/trunk@68866 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -52,6 +52,7 @@ interface nsIAddrDatabase : nsIAddrDBAnnouncer {
|
||||
void forceClosed();
|
||||
|
||||
void createNewCardAndAddToDB(in nsIAbCard newCard, in boolean beNotify);
|
||||
void createNewCardAndAddToDBWithKey(in nsIAbCard newCard, in boolean beNotify, out unsigned long key);
|
||||
void createNewListCardAndAddToDB(in unsigned long listRowID, in nsIAbCard newCard, in boolean beNotify);
|
||||
void createMailListAndAddToDB(in nsIAbDirectory newList, in boolean beNotify);
|
||||
nsIEnumerator enumerateCards(in nsIAbDirectory directory);
|
||||
|
||||
@@ -270,12 +270,9 @@ Rights Reserved.
|
||||
<!-- card view -->
|
||||
<box id="CardViewBox" style="height:170px; min-height:1px; min-width:1px"/>
|
||||
|
||||
<box id="status-bar">
|
||||
<!-- replace spring with real stuff later -->
|
||||
<spring style="width:10px"/>
|
||||
<text value="Status Bar"/>
|
||||
<spring flex="100%"/>
|
||||
</box>
|
||||
<box id="status-bar">
|
||||
<text id="statusText" class="status-bar" align="left" flex="100%" value="&statusText.label;"/>
|
||||
</box>
|
||||
|
||||
</box>
|
||||
|
||||
|
||||
@@ -96,3 +96,5 @@ Rights Reserved.
|
||||
<!-- Sidebar -->
|
||||
<!ENTITY addressbook-sidebar-header.label "Address Books">
|
||||
|
||||
<!-- Status Bar -->
|
||||
<!ENTITY statusText.label "">
|
||||
|
||||
@@ -1576,6 +1576,18 @@ NS_IMETHODIMP nsAddrDatabase::CreateNewCardAndAddToDB(nsIAbCard *newCard, PRBool
|
||||
return err;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsAddrDatabase::CreateNewCardAndAddToDBWithKey(nsIAbCard *newCard, PRBool notify /* = FALSE */, PRUint32 *key)
|
||||
{
|
||||
nsresult err = NS_OK;
|
||||
*key = 0;
|
||||
|
||||
err = CreateNewCardAndAddToDB(newCard, notify);
|
||||
if (NS_SUCCEEDED(err))
|
||||
*key = m_LastRecordKey;
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsAddrDatabase::CreateNewListCardAndAddToDB(PRUint32 listRowID, nsIAbCard *newCard, PRBool notify /* = FALSE */)
|
||||
{
|
||||
if (!newCard || !m_mdbPabTable)
|
||||
|
||||
@@ -78,6 +78,7 @@ public:
|
||||
NS_IMETHOD ForceClosed();
|
||||
|
||||
NS_IMETHOD CreateNewCardAndAddToDB(nsIAbCard *newCard, PRBool notify);
|
||||
NS_IMETHOD CreateNewCardAndAddToDBWithKey(nsIAbCard *newCard, PRBool notify, PRUint32 *key);
|
||||
NS_IMETHOD CreateNewListCardAndAddToDB(PRUint32 listRowID, nsIAbCard *newCard, PRBool notify);
|
||||
NS_IMETHOD CreateMailListAndAddToDB(nsIAbDirectory *newList, PRBool notify);
|
||||
NS_IMETHOD EnumerateCards(nsIAbDirectory *directory, nsIEnumerator **result);
|
||||
|
||||
Reference in New Issue
Block a user