nsDirIndex.cpp (1273B)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #include "nsDirIndex.h" 7 8 NS_IMPL_ISUPPORTS(nsDirIndex, nsIDirIndex) 9 10 NS_IMETHODIMP 11 nsDirIndex::GetType(uint32_t* aType) { 12 NS_ENSURE_ARG_POINTER(aType); 13 14 *aType = mType; 15 return NS_OK; 16 } 17 18 NS_IMETHODIMP 19 nsDirIndex::SetType(uint32_t aType) { 20 mType = aType; 21 return NS_OK; 22 } 23 24 NS_IMETHODIMP 25 nsDirIndex::GetLocation(nsACString& aLocation) { 26 aLocation = mLocation; 27 return NS_OK; 28 } 29 30 NS_IMETHODIMP 31 nsDirIndex::SetLocation(const nsACString& aLocation) { 32 mLocation = aLocation; 33 return NS_OK; 34 } 35 36 NS_IMETHODIMP 37 nsDirIndex::GetSize(int64_t* aSize) { 38 NS_ENSURE_ARG_POINTER(aSize); 39 40 *aSize = mSize; 41 return NS_OK; 42 } 43 44 NS_IMETHODIMP 45 nsDirIndex::SetSize(int64_t aSize) { 46 mSize = aSize; 47 return NS_OK; 48 } 49 50 NS_IMETHODIMP 51 nsDirIndex::GetLastModified(PRTime* aLastModified) { 52 NS_ENSURE_ARG_POINTER(aLastModified); 53 54 *aLastModified = mLastModified; 55 return NS_OK; 56 } 57 58 NS_IMETHODIMP 59 nsDirIndex::SetLastModified(PRTime aLastModified) { 60 mLastModified = aLastModified; 61 return NS_OK; 62 }