Merge remote-tracking branch 'aleric/master' into 1.7.3-dev
This commit is contained in:
@@ -85,13 +85,13 @@ class LLIamHereVoice : public LLHTTPClient::ResponderWithResult
|
||||
mParent = parentIn;
|
||||
};
|
||||
|
||||
virtual void result( const LLSD& content )
|
||||
/*virtual*/ void result( const LLSD& content )
|
||||
{
|
||||
if ( mParent )
|
||||
mParent->setSiteIsAlive( true );
|
||||
};
|
||||
|
||||
virtual void error( U32 status, const std::string& reason )
|
||||
/*virtual*/ void error( U32 status, const std::string& reason )
|
||||
{
|
||||
if ( mParent )
|
||||
{
|
||||
@@ -103,7 +103,8 @@ class LLIamHereVoice : public LLHTTPClient::ResponderWithResult
|
||||
}
|
||||
};
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return iamHereVoice_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return iamHereVoice_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLIamHereVoice"; }
|
||||
};
|
||||
|
||||
// this is global and not a class member to keep crud out of the header file
|
||||
|
||||
@@ -301,7 +301,9 @@ void ImportTracker::get_update(S32 newid, BOOL justCreated, BOOL createSelected)
|
||||
break;*/
|
||||
}
|
||||
}
|
||||
/*struct InventoryImportInfo
|
||||
|
||||
#if 0
|
||||
struct InventoryImportInfo
|
||||
{
|
||||
U32 localid;
|
||||
LLAssetType::EType type;
|
||||
@@ -372,7 +374,7 @@ public:
|
||||
{
|
||||
|
||||
}
|
||||
virtual void uploadComplete(const LLSD& content)
|
||||
/*virtual*/ void uploadComplete(const LLSD& content)
|
||||
{
|
||||
LLPointer<LLInventoryCallback> cb = new JCImportTransferCallback(data);
|
||||
LLPermissions perm;
|
||||
@@ -385,6 +387,7 @@ public:
|
||||
cb);
|
||||
|
||||
}
|
||||
/*virtual*/ char const* getName(void) const { return "JCImportInventoryResponder"; }
|
||||
private:
|
||||
InventoryImportInfo* data;
|
||||
};
|
||||
@@ -405,13 +408,14 @@ public:
|
||||
LLAssetType::EType asset_type) : LLAssetUploadResponder(post_data, file_name, asset_type)
|
||||
{
|
||||
}
|
||||
virtual void uploadComplete(const LLSD& content)
|
||||
/*virtual*/ void uploadComplete(const LLSD& content)
|
||||
{
|
||||
//cmdline_printchat("completed upload, inserting");
|
||||
LLViewerInventoryItem* item = (LLViewerInventoryItem*)gInventory.getItem(item_id);
|
||||
LLViewerObject* objectp = find(data->localid);
|
||||
insert(item, objectp, data);
|
||||
}
|
||||
/*virtual*/ char const* getName(void) const { return "JCPostInvUploadResponder"; }
|
||||
private:
|
||||
LLUUID item_id;
|
||||
InventoryImportInfo* data;
|
||||
@@ -1119,4 +1123,4 @@ void ImportTracker::plywood_above_head()
|
||||
msg->addUUIDFast(_PREHASH_RayTargetID, LLUUID::null);
|
||||
msg->sendReliable(region->getHost());
|
||||
}
|
||||
*/
|
||||
#endif
|
||||
|
||||
@@ -57,12 +57,13 @@ class EmeraldDicDownloader : public LLHTTPClient::ResponderWithCompleted
|
||||
public:
|
||||
EmeraldDicDownloader(lggDicDownloadFloater* spanel, std::string sname);
|
||||
~EmeraldDicDownloader() { }
|
||||
void completedRaw(
|
||||
/*virtual*/ void completedRaw(
|
||||
U32 status,
|
||||
const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
const buffer_ptr_t& buffer);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return emeraldDicDownloader_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return emeraldDicDownloader_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "EmeraldDicDownloader"; }
|
||||
private:
|
||||
lggDicDownloadFloater* panel;
|
||||
std::string name;
|
||||
|
||||
@@ -54,13 +54,13 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void error( U32 statusNum, const std::string& reason )
|
||||
/*virtual*/ void error( U32 statusNum, const std::string& reason )
|
||||
{
|
||||
llwarns << "Transport error "<<reason<<llendl;
|
||||
clearPendingRequests();
|
||||
}
|
||||
|
||||
void result( const LLSD& content )
|
||||
/*virtual*/ void result( const LLSD& content )
|
||||
{
|
||||
//Check for error
|
||||
if ( !content.isMap() || content.has("error") )
|
||||
@@ -88,12 +88,14 @@ public:
|
||||
clearPendingRequests();
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return accountingCostResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return accountingCostResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLAccountingCostResponder"; }
|
||||
|
||||
private:
|
||||
//List of posted objects
|
||||
LLSD mObjectIDs;
|
||||
};
|
||||
|
||||
//===============================================================================
|
||||
void LLAccountingCostManager::fetchCosts( eSelectionType selectionType, const std::string& url )
|
||||
{
|
||||
|
||||
@@ -2512,10 +2512,11 @@ public:
|
||||
LLMaturityPreferencesResponder(LLAgent *pAgent, U8 pPreferredMaturity, U8 pPreviousMaturity);
|
||||
virtual ~LLMaturityPreferencesResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string& pReason);
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string& pReason);
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return maturityPreferences_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return maturityPreferences_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLMaturityPreferencesResponder"; }
|
||||
|
||||
private:
|
||||
U8 parseMaturityFromServerResponse(const LLSD &pContent);
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
delete mData;
|
||||
}
|
||||
|
||||
virtual void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
llwarns << "Error: " << reason << llendl;
|
||||
LLUpdateTaskInventoryResponder::error(statusNum, reason);
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
LLUpdateTaskInventoryResponder::result(content);
|
||||
LLAssetUploadQueue *queue = mSupplier->get();
|
||||
@@ -136,13 +136,14 @@ public:
|
||||
LLUpdateTaskInventoryResponder::uploadComplete(content);
|
||||
}
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "LLAssetUploadChainResponder"; }
|
||||
|
||||
LLAssetUploadQueueSupplier *mSupplier;
|
||||
char* mData;
|
||||
U32 mDataSize;
|
||||
std::string mScriptName;
|
||||
};
|
||||
|
||||
|
||||
LLAssetUploadQueue::LLAssetUploadQueue(LLAssetUploadQueueSupplier *supplier) :
|
||||
mSupplier(supplier)
|
||||
{
|
||||
|
||||
@@ -317,8 +317,10 @@ void LLAssetUploadResponder::uploadComplete(const LLSD& content)
|
||||
LLNewAgentInventoryResponder::LLNewAgentInventoryResponder(
|
||||
const LLSD& post_data,
|
||||
const LLUUID& vfile_id,
|
||||
LLAssetType::EType asset_type)
|
||||
: LLAssetUploadResponder(post_data, vfile_id, asset_type)
|
||||
LLAssetType::EType asset_type,
|
||||
void (*callback)(bool, void*),
|
||||
void* user_data)
|
||||
: LLAssetUploadResponder(post_data, vfile_id, asset_type), mCallBack(callback), mUserData(user_data)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -326,13 +328,17 @@ LLNewAgentInventoryResponder::LLNewAgentInventoryResponder(
|
||||
const LLSD& post_data,
|
||||
const std::string& file_name,
|
||||
LLAssetType::EType asset_type)
|
||||
: LLAssetUploadResponder(post_data, file_name, asset_type)
|
||||
: LLAssetUploadResponder(post_data, file_name, asset_type), mCallBack(NULL), mUserData(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLNewAgentInventoryResponder::error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
if (mCallBack)
|
||||
{
|
||||
(*mCallBack)(false, mUserData);
|
||||
}
|
||||
LLAssetUploadResponder::error(statusNum, reason);
|
||||
//LLImportColladaAssetCache::getInstance()->assetUploaded(mVFileID, LLUUID(), FALSE);
|
||||
}
|
||||
@@ -340,6 +346,10 @@ void LLNewAgentInventoryResponder::error(U32 statusNum, const std::string& reaso
|
||||
//virtual
|
||||
void LLNewAgentInventoryResponder::uploadFailure(const LLSD& content)
|
||||
{
|
||||
if (mCallBack)
|
||||
{
|
||||
(*mCallBack)(false, mUserData);
|
||||
}
|
||||
LLAssetUploadResponder::uploadFailure(content);
|
||||
//LLImportColladaAssetCache::getInstance()->assetUploaded(mVFileID, content["new_asset"], FALSE);
|
||||
}
|
||||
@@ -349,6 +359,11 @@ void LLNewAgentInventoryResponder::uploadComplete(const LLSD& content)
|
||||
{
|
||||
lldebugs << "LLNewAgentInventoryResponder::result from capabilities" << llendl;
|
||||
|
||||
if (mCallBack)
|
||||
{
|
||||
(*mCallBack)(true, mUserData);
|
||||
}
|
||||
|
||||
//std::ostringstream llsdxml;
|
||||
//LLSDSerialize::toXML(content, llsdxml);
|
||||
//llinfos << "upload complete content:\n " << llsdxml.str() << llendl;
|
||||
|
||||
@@ -61,9 +61,10 @@ public:
|
||||
const std::string& file_name,
|
||||
LLAssetType::EType asset_type);
|
||||
~LLAssetUploadResponder();
|
||||
virtual void error(U32 statusNum, const std::string& reason);
|
||||
virtual void result(const LLSD& content);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return assetUploadResponder_timeout; }
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason);
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return assetUploadResponder_timeout; }
|
||||
|
||||
virtual void uploadUpload(const LLSD& content);
|
||||
virtual void uploadComplete(const LLSD& content);
|
||||
virtual void uploadFailure(const LLSD& content);
|
||||
@@ -77,18 +78,23 @@ protected:
|
||||
|
||||
class LLNewAgentInventoryResponder : public LLAssetUploadResponder
|
||||
{
|
||||
void (*mCallBack)(bool, void*);
|
||||
void* mUserData;
|
||||
public:
|
||||
LLNewAgentInventoryResponder(
|
||||
const LLSD& post_data,
|
||||
const LLUUID& vfile_id,
|
||||
LLAssetType::EType asset_type);
|
||||
LLAssetType::EType asset_type,
|
||||
void (*callback)(bool, void*) = NULL,
|
||||
void* user_data = NULL);
|
||||
LLNewAgentInventoryResponder(
|
||||
const LLSD& post_data,
|
||||
const std::string& file_name,
|
||||
LLAssetType::EType asset_type);
|
||||
virtual void error(U32 statusNum, const std::string& reason);
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason);
|
||||
virtual void uploadComplete(const LLSD& content);
|
||||
virtual void uploadFailure(const LLSD& content);
|
||||
/*virtual*/ char const* getName(void) const { return "LLNewAgentInventoryResponder"; }
|
||||
};
|
||||
|
||||
// A base class which goes through and performs some default
|
||||
@@ -110,12 +116,12 @@ public:
|
||||
const LLSD& inventory_info);
|
||||
virtual ~LLNewAgentInventoryVariablePriceResponder();
|
||||
|
||||
void errorWithContent(
|
||||
/*virtual*/ void errorWithContent(
|
||||
U32 statusNum,
|
||||
const std::string& reason,
|
||||
const LLSD& content);
|
||||
void result(const LLSD& content);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return newAgentInventoryVariablePriceResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return newAgentInventoryVariablePriceResponder_timeout; }
|
||||
|
||||
virtual void onApplicationLevelError(
|
||||
const LLSD& error);
|
||||
@@ -141,8 +147,9 @@ public:
|
||||
|
||||
~LLSendTexLayerResponder();
|
||||
|
||||
virtual void uploadComplete(const LLSD& content);
|
||||
virtual void error(U32 statusNum, const std::string& reason);
|
||||
/*virtual*/ void uploadComplete(const LLSD& content);
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason);
|
||||
/*virtual*/ char const* getName(void) const { return "LLSendTexLayerResponder"; }
|
||||
|
||||
LLBakedUploadData * mBakedUploadData;
|
||||
};
|
||||
@@ -157,6 +164,7 @@ public:
|
||||
const std::string& file_name,
|
||||
LLAssetType::EType asset_type);
|
||||
virtual void uploadComplete(const LLSD& content);
|
||||
/*virtual*/ char const* getName(void) const { return "LLUpdateAgentInventoryResponder"; }
|
||||
};
|
||||
|
||||
class LLUpdateTaskInventoryResponder : public LLAssetUploadResponder
|
||||
@@ -174,7 +182,8 @@ public:
|
||||
LLAssetType::EType asset_type);
|
||||
|
||||
virtual void uploadComplete(const LLSD& content);
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "LLUpdateTaskInventoryResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mQueueId;
|
||||
};
|
||||
|
||||
@@ -45,10 +45,11 @@ class LLClassifiedStatsResponder : public LLHTTPClient::ResponderWithResult
|
||||
public:
|
||||
LLClassifiedStatsResponder(LLHandle<LLView> classified_panel_handle, LLUUID classified_id);
|
||||
//If we get back a normal response, handle it here
|
||||
virtual void result(const LLSD& content);
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
//If we get back an error (not found, etc...), handle it here
|
||||
virtual void error(U32 status, const std::string& reason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return classifiedStatsResponder_timeout; }
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return classifiedStatsResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLClassifiedStatsResponder"; }
|
||||
|
||||
protected:
|
||||
LLHandle<LLView> mClassifiedPanelHandle;
|
||||
|
||||
@@ -73,9 +73,10 @@ namespace
|
||||
|
||||
|
||||
void handleMessage(const LLSD& content);
|
||||
virtual void error(U32 status, const std::string& reason);
|
||||
virtual void result(const LLSD& content);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return eventPollResponder_timeout; }
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return eventPollResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLEventPollResponder"; }
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -832,7 +832,7 @@ void LLPanelActiveSpeakers::onModeratorMuteVoice(LLUICtrl* ctrl, void* user_data
|
||||
mSessionID = session_id;
|
||||
}
|
||||
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
llwarns << status << ": " << reason << llendl;
|
||||
|
||||
@@ -862,7 +862,8 @@ void LLPanelActiveSpeakers::onModeratorMuteVoice(LLUICtrl* ctrl, void* user_data
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return muteVoiceResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return muteVoiceResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "MuteVoiceResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mSessionID;
|
||||
@@ -899,7 +900,7 @@ void LLPanelActiveSpeakers::onModeratorMuteText(LLUICtrl* ctrl, void* user_data)
|
||||
mSessionID = session_id;
|
||||
}
|
||||
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
llwarns << status << ": " << reason << llendl;
|
||||
|
||||
@@ -929,7 +930,8 @@ void LLPanelActiveSpeakers::onModeratorMuteText(LLUICtrl* ctrl, void* user_data)
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return muteTextResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return muteTextResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "MuteTextResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mSessionID;
|
||||
@@ -967,11 +969,12 @@ void LLPanelActiveSpeakers::onChangeModerationMode(LLUICtrl* ctrl, void* user_da
|
||||
|
||||
struct ModerationModeResponder : public LLHTTPClient::ResponderIgnoreBody
|
||||
{
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
llwarns << status << ": " << reason << llendl;
|
||||
}
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return moderationModeResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return moderationModeResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "ModerationModeResponder"; }
|
||||
};
|
||||
|
||||
LLHTTPClient::post(url, data, new ModerationModeResponder());
|
||||
|
||||
@@ -487,7 +487,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
const AIHTTPTimeoutPolicy &getHTTPTimeoutPolicy(void) const { return avatarPickerResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return avatarPickerResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLAvatarPickerResponder"; }
|
||||
};
|
||||
|
||||
void LLFloaterAvatarPicker::find()
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "llviewerwindow.h"
|
||||
#include "llwebprofile.h"
|
||||
#include "lluploaddialog.h"
|
||||
#include "lltexteditor.h"
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
@@ -52,7 +53,7 @@
|
||||
|
||||
LLFloaterFeed::LLFloaterFeed(LLImagePNG* png, LLViewerTexture* img, LLVector2 const& img_scale, int index) :
|
||||
LLFloater(std::string("Feed Floater")),
|
||||
mPNGImage(png), mViewerImage(img), mImageScale(img_scale), mSnapshotIndex(index)
|
||||
mPNGImage(png), mViewerImage(img), mImageScale(img_scale), mSnapshotIndex(index), mHasFirstMsgFocus(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -66,10 +67,26 @@ BOOL LLFloaterFeed::postBuild()
|
||||
{
|
||||
getChild<LLUICtrl>("cancel_btn")->setCommitCallback(boost::bind(&LLFloaterFeed::onClickCancel, this));
|
||||
getChild<LLUICtrl>("post_btn")->setCommitCallback(boost::bind(&LLFloaterFeed::onClickPost, this));
|
||||
LLTextEditor* caption = getChild<LLTextEditor>("caption");
|
||||
if (caption)
|
||||
{
|
||||
// For the first time a user focusess to the msg box, all text will be selected.
|
||||
caption->setFocusChangedCallback(boost::bind(&LLFloaterFeed::onMsgFormFocusRecieved, this, _1, caption));
|
||||
}
|
||||
childSetFocus("cancel_btn", TRUE);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void LLFloaterFeed::onMsgFormFocusRecieved(LLFocusableElement* receiver, LLTextEditor* caption)
|
||||
{
|
||||
if (caption && caption == receiver && caption->hasFocus() && !mHasFirstMsgFocus)
|
||||
{
|
||||
mHasFirstMsgFocus = true;
|
||||
caption->setText(LLStringUtil::null);
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
LLFloaterFeed* LLFloaterFeed::showFromSnapshot(LLImagePNG* png, LLViewerTexture* img, LLVector2 const& image_scale, int index)
|
||||
{
|
||||
@@ -148,6 +165,12 @@ void LLFloaterFeed::onClose(bool app_quitting)
|
||||
|
||||
void LLFloaterFeed::onClickPost()
|
||||
{
|
||||
if (!mHasFirstMsgFocus)
|
||||
{
|
||||
// The user never switched focus to the messagee window.
|
||||
// Using the default string.
|
||||
childSetValue("caption", getString("default_message"));
|
||||
}
|
||||
if (mPNGImage.notNull())
|
||||
{
|
||||
static LLCachedControl<bool> add_location("SnapshotFeedAddLocation");
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
|
||||
class LLImagePNG;
|
||||
class LLViewerTexture;
|
||||
class LLFocusableElement;
|
||||
class LLTextEditor;
|
||||
|
||||
class LLFloaterFeed : public LLFloater
|
||||
{
|
||||
@@ -53,12 +55,14 @@ public:
|
||||
|
||||
void onClickCancel();
|
||||
void onClickPost();
|
||||
void onMsgFormFocusRecieved(LLFocusableElement* receiver, LLTextEditor* caption);
|
||||
|
||||
protected:
|
||||
LLPointer<LLImagePNG> mPNGImage;
|
||||
LLPointer<LLViewerTexture> mViewerImage;
|
||||
LLVector2 const mImageScale;
|
||||
int mSnapshotIndex;
|
||||
bool mHasFirstMsgFocus;
|
||||
};
|
||||
|
||||
#endif // LL_LLFLOATERFEED_H
|
||||
|
||||
@@ -251,7 +251,6 @@ public:
|
||||
/*virtual*/ void uploadComplete(const LLSD& content)
|
||||
{
|
||||
// we don't care about what the server returns from this post, just clean up the UI
|
||||
LLUploadDialog::modalUploadFinished();
|
||||
LLFloaterSnapshot::savePostcardDone(true, mSnapshotIndex);
|
||||
}
|
||||
/*virtual*/ void uploadFailure(const LLSD& content)
|
||||
@@ -264,6 +263,7 @@ public:
|
||||
LLAssetUploadResponder::error(statusNum, reason);
|
||||
LLFloaterSnapshot::savePostcardDone(false, mSnapshotIndex);
|
||||
}
|
||||
/*virtual*/ char const* getName(void) const { return "LLSendPostcardResponder"; }
|
||||
};
|
||||
|
||||
// static
|
||||
@@ -313,8 +313,6 @@ void LLFloaterPostcard::uploadCallback(const LLUUID& asset_id, void *user_data,
|
||||
{
|
||||
LLFloaterPostcard *self = (LLFloaterPostcard *)user_data;
|
||||
|
||||
LLUploadDialog::modalUploadFinished();
|
||||
|
||||
LLFloaterSnapshot::savePostcardDone(!result, self->mSnapshotIndex);
|
||||
|
||||
if (result)
|
||||
@@ -345,7 +343,7 @@ void LLFloaterPostcard::uploadCallback(const LLUUID& asset_id, void *user_data,
|
||||
gAgent.sendReliableMessage();
|
||||
}
|
||||
|
||||
self->close();
|
||||
self->destroy();
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
@@ -80,12 +80,9 @@ namespace
|
||||
class AsyncConsoleResponder : public LLHTTPClient::ResponderIgnoreBody
|
||||
{
|
||||
public:
|
||||
/* virtual */
|
||||
void error(U32 status, const std::string& reason)
|
||||
{
|
||||
sConsoleReplySignal(UNABLE_TO_SEND_COMMAND);
|
||||
}
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return asyncConsoleResponder_timeout; }
|
||||
/*virtual*/ void error(U32 status, const std::string& reason) { sConsoleReplySignal(UNABLE_TO_SEND_COMMAND); }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return asyncConsoleResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "AsyncConsoleResponder"; }
|
||||
};
|
||||
|
||||
class ConsoleResponder : public LLHTTPClient::ResponderWithResult
|
||||
@@ -95,8 +92,7 @@ namespace
|
||||
{
|
||||
}
|
||||
|
||||
/*virtual*/
|
||||
void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
if (mOutput)
|
||||
{
|
||||
@@ -106,8 +102,7 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
/*virtual*/
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
if (mOutput)
|
||||
{
|
||||
@@ -116,7 +111,8 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return consoleResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return consoleResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "ConsoleResponder"; }
|
||||
|
||||
LLTextEditor * mOutput;
|
||||
};
|
||||
|
||||
@@ -2326,7 +2326,7 @@ public:
|
||||
}
|
||||
|
||||
// if we get a normal response, handle it here
|
||||
virtual void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
LL_INFOS("Windlight") << "Successfully committed estate info" << llendl;
|
||||
|
||||
@@ -2337,13 +2337,14 @@ public:
|
||||
}
|
||||
|
||||
// if we get an error response
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
llinfos << "LLEstateChangeInfoResponder::error "
|
||||
<< status << ": " << reason << llendl;
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return estateChangeInfoResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return estateChangeInfoResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLEstateChangeInfoResponder"; }
|
||||
|
||||
private:
|
||||
LLHandle<LLPanel> mpPanel;
|
||||
|
||||
@@ -843,7 +843,7 @@ public:
|
||||
LLUserReportScreenshotResponder(const LLSD & post_data,
|
||||
const LLUUID & vfile_id,
|
||||
LLAssetType::EType asset_type):
|
||||
LLAssetUploadResponder(post_data, vfile_id, asset_type)
|
||||
LLAssetUploadResponder(post_data, vfile_id, asset_type)
|
||||
{
|
||||
}
|
||||
void uploadFailed(const LLSD& content)
|
||||
@@ -856,6 +856,8 @@ public:
|
||||
// we don't care about what the server returns from this post, just clean up the UI
|
||||
LLUploadDialog::modalUploadFinished();
|
||||
}
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "LLUserReportScreenshotResponder"; }
|
||||
};
|
||||
|
||||
class LLUserReportResponder : public LLHTTPClient::ResponderWithResult
|
||||
@@ -863,17 +865,18 @@ class LLUserReportResponder : public LLHTTPClient::ResponderWithResult
|
||||
public:
|
||||
LLUserReportResponder() { }
|
||||
|
||||
void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
// *TODO do some user messaging here
|
||||
LLUploadDialog::modalUploadFinished();
|
||||
}
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
// we don't care about what the server returns
|
||||
LLUploadDialog::modalUploadFinished();
|
||||
}
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return userReportResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return userReportResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLUserReportResponder"; }
|
||||
};
|
||||
|
||||
void LLFloaterReporter::sendReportViaCaps(std::string url, std::string sshot_url, const LLSD& report)
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
#include "llviewerwindow.h"
|
||||
#include "llwindow.h"
|
||||
#include "llviewermenufile.h" // upload_new_resource()
|
||||
#include "llresourcedata.h"
|
||||
#include "llfloaterpostcard.h"
|
||||
#include "llfloaterfeed.h"
|
||||
#include "llcheckboxctrl.h"
|
||||
@@ -73,6 +74,7 @@
|
||||
#include "llworld.h"
|
||||
#include "llagentui.h"
|
||||
#include "llvoavatar.h"
|
||||
#include "lluploaddialog.h"
|
||||
|
||||
#include "llgl.h"
|
||||
#include "llglheaders.h"
|
||||
@@ -182,6 +184,7 @@ public:
|
||||
LLFloaterPostcard* savePostcard();
|
||||
void saveTexture();
|
||||
static void saveTextureDone(LLUUID const& asset_id, void* user_data, S32 status, LLExtStat ext_status);
|
||||
static void saveTextureDone2(bool success, void* user_data);
|
||||
void saveLocal();
|
||||
void saveStart(int index);
|
||||
void saveDone(ESnapshotType type, bool success, int index);
|
||||
@@ -383,7 +386,7 @@ LLSnapshotLivePreview::LLSnapshotLivePreview (const LLRect& rect) :
|
||||
mColor(1.f, 0.f, 0.f, 0.5f),
|
||||
mRawSnapshot(NULL),
|
||||
mRawSnapshotWidth(0),
|
||||
mRawSnapshotHeight(0),
|
||||
mRawSnapshotHeight(1),
|
||||
mRawSnapshotAspectRatio(1.0),
|
||||
mRawSnapshotRenderUI(FALSE),
|
||||
mRawSnapshotRenderHUD(FALSE),
|
||||
@@ -409,7 +412,7 @@ LLSnapshotLivePreview::LLSnapshotLivePreview (const LLRect& rect) :
|
||||
mSnapshotBufferType(LLViewerWindow::SNAPSHOT_TYPE_COLOR),
|
||||
mCloseCalled(NULL)
|
||||
{
|
||||
DoutEntering(dc::notice, "LLSnapshotLivePreview() [" << (void*)this << "]");
|
||||
DoutEntering(dc::snapshot, "LLSnapshotLivePreview() [" << (void*)this << "]");
|
||||
setSnapshotQuality(gSavedSettings.getS32("SnapshotQuality"));
|
||||
mSnapshotDelayTimer.start();
|
||||
sList.insert(this);
|
||||
@@ -430,7 +433,7 @@ LLSnapshotLivePreview::LLSnapshotLivePreview (const LLRect& rect) :
|
||||
|
||||
LLSnapshotLivePreview::~LLSnapshotLivePreview()
|
||||
{
|
||||
DoutEntering(dc::notice, "~LLSnapshotLivePreview() [" << (void*)this << "]");
|
||||
DoutEntering(dc::snapshot, "~LLSnapshotLivePreview() [" << (void*)this << "]");
|
||||
sList.erase(this);
|
||||
// Stop callbacks from using this object.
|
||||
++sSnapshotIndex;
|
||||
@@ -455,7 +458,7 @@ LLViewerTexture* LLSnapshotLivePreview::getCurrentImage()
|
||||
|
||||
void LLSnapshotLivePreview::showFreezeFrameSnapshot(bool show)
|
||||
{
|
||||
DoutEntering(dc::notice, "LLSnapshotLivePreview::showFreezeFrameSnapshot(" << show << ")");
|
||||
DoutEntering(dc::snapshot, "LLSnapshotLivePreview::showFreezeFrameSnapshot(" << show << ")");
|
||||
// If we stop to show the fullscreen "freeze frame" snapshot, play the "fall away" animation.
|
||||
if (mShowFreezeFrameSnapshot && !show)
|
||||
{
|
||||
@@ -471,7 +474,7 @@ void LLSnapshotLivePreview::showFreezeFrameSnapshot(bool show)
|
||||
|
||||
void LLSnapshotLivePreview::updateSnapshot(BOOL new_snapshot, BOOL new_thumbnail, F32 delay)
|
||||
{
|
||||
DoutEntering(dc::notice, "LLSnapshotLivePreview::updateSnapshot(" << new_snapshot << ", " << new_thumbnail << ", " << delay << ")");
|
||||
DoutEntering(dc::snapshot, "LLSnapshotLivePreview::updateSnapshot(" << new_snapshot << ", " << new_thumbnail << ", " << delay << ")");
|
||||
|
||||
LLRect& rect = mFullScreenImageRect;
|
||||
rect.set(0, getRect().getHeight(), getRect().getWidth(), 0);
|
||||
@@ -820,7 +823,7 @@ void LLSnapshotLivePreview::generateThumbnailImage(void)
|
||||
return ;
|
||||
}
|
||||
|
||||
Dout(dc::notice, "LLSnapshotLivePreview::generateThumbnailImage: Actually making a new thumbnail!");
|
||||
Dout(dc::snapshot, "LLSnapshotLivePreview::generateThumbnailImage: Actually making a new thumbnail!");
|
||||
|
||||
mThumbnailImage = NULL;
|
||||
|
||||
@@ -843,7 +846,7 @@ void LLSnapshotLivePreview::generateThumbnailImage(void)
|
||||
{
|
||||
mThumbnailImage = LLViewerTextureManager::getLocalTexture(raw.get(), FALSE);
|
||||
mThumbnailUpToDate = TRUE ;
|
||||
Dout(dc::notice, "thumbnailSnapshot(" << w << ", " << h << ", ...) returns " << raw->getWidth() << ", " << raw->getHeight());
|
||||
Dout(dc::snapshot, "thumbnailSnapshot(" << w << ", " << h << ", ...) returns " << raw->getWidth() << ", " << raw->getHeight());
|
||||
}
|
||||
|
||||
//unlock updating
|
||||
@@ -903,7 +906,7 @@ BOOL LLSnapshotLivePreview::onIdle(LLSnapshotLivePreview* previewp)
|
||||
previewp->getWindow()->incBusyCount();
|
||||
|
||||
// Grab the raw image and encode it into desired format.
|
||||
Dout(dc::notice, "LLSnapshotLivePreview::onIdle: Actually making a new snapshot!");
|
||||
Dout(dc::snapshot, "LLSnapshotLivePreview::onIdle: Actually making a new snapshot!");
|
||||
|
||||
// This should never happen, but well. If it's true then that means that the
|
||||
// snapshot floater is disabled. Incrementing sSnapshotIndex will cause the
|
||||
@@ -911,9 +914,10 @@ BOOL LLSnapshotLivePreview::onIdle(LLSnapshotLivePreview* previewp)
|
||||
if (previewp->mCloseCalled)
|
||||
{
|
||||
previewp->mCloseCalled->setEnabled(TRUE);
|
||||
previewp->mCloseCalled->setVisible(TRUE);
|
||||
}
|
||||
previewp->sSnapshotIndex++;
|
||||
Dout(dc::notice, "sSnapshotIndex is now " << previewp->sSnapshotIndex << "; mOutstandingCallbacks reset to 0.");
|
||||
Dout(dc::snapshot, "sSnapshotIndex is now " << previewp->sSnapshotIndex << "; mOutstandingCallbacks reset to 0.");
|
||||
previewp->mOutstandingCallbacks = 0; // There are no outstanding callbacks for THIS snapshot.
|
||||
previewp->mSaveFailures = 0; // There were no upload failures (or attempts for that matter) for this snapshot.
|
||||
|
||||
@@ -930,7 +934,7 @@ BOOL LLSnapshotLivePreview::onIdle(LLSnapshotLivePreview* previewp)
|
||||
previewp->mRawSnapshotAspectRatio = previewp->mAspectRatio;
|
||||
// Mark that the those values do not represent the current snapshot (yet).
|
||||
previewp->mRawSnapshotWidth = 0;
|
||||
previewp->mRawSnapshotHeight = 0;
|
||||
previewp->mRawSnapshotHeight = 1; // Avoid division by zero when calculation an aspect in LLSnapshotLivePreview::getAspectSizeProblem.
|
||||
|
||||
if (gViewerWindow->rawRawSnapshot(
|
||||
previewp->mRawSnapshot,
|
||||
@@ -945,7 +949,7 @@ BOOL LLSnapshotLivePreview::onIdle(LLSnapshotLivePreview* previewp)
|
||||
// On success, cache the size of the raw snapshot.
|
||||
previewp->mRawSnapshotWidth = previewp->mRawSnapshot->getWidth();
|
||||
previewp->mRawSnapshotHeight = previewp->mRawSnapshot->getHeight();
|
||||
Dout(dc::notice, "Created a new raw snapshot of size " << previewp->mRawSnapshotWidth << "x" << previewp->mRawSnapshotHeight);
|
||||
Dout(dc::snapshot, "Created a new raw snapshot of size " << previewp->mRawSnapshotWidth << "x" << previewp->mRawSnapshotHeight);
|
||||
|
||||
previewp->mPosTakenGlobal = gAgentCamera.getCameraPositionGlobal();
|
||||
EAspectSizeProblem ret = previewp->generateFormattedAndFullscreenPreview();
|
||||
@@ -1011,7 +1015,7 @@ LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::getAspectSizePr
|
||||
crop_vertically_out = false;
|
||||
if (!allow_horizontal_crop)
|
||||
{
|
||||
Dout(dc::notice, "NOT up to date: required aspect " << mAspectRatio <<
|
||||
Dout(dc::snapshot, "NOT up to date: required aspect " << mAspectRatio <<
|
||||
" is less than the (lower) raw aspect " << lower_raw_aspect << " which is already vertically cropped.");
|
||||
return CANNOT_CROP_HORIZONTALLY;
|
||||
}
|
||||
@@ -1025,7 +1029,7 @@ LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::getAspectSizePr
|
||||
{
|
||||
if (!allow_vertical_crop)
|
||||
{
|
||||
Dout(dc::notice, "NOT up to date: required aspect " << mAspectRatio <<
|
||||
Dout(dc::snapshot, "NOT up to date: required aspect " << mAspectRatio <<
|
||||
" is larger than the (upper) raw aspect " << upper_raw_aspect << " which is already horizontally cropped.");
|
||||
return CANNOT_CROP_VERTICALLY;
|
||||
}
|
||||
@@ -1035,7 +1039,7 @@ LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::getAspectSizePr
|
||||
// Never allow upscaling of the existing snapshot, of course.
|
||||
if (mWidth > width_out || mHeight > height_out)
|
||||
{
|
||||
Dout(dc::notice, "NOT up to date: required target size " << mWidth << "x" << mHeight <<
|
||||
Dout(dc::snapshot, "NOT up to date: required target size " << mWidth << "x" << mHeight <<
|
||||
" is larger than (cropped) raw snapshot with size " << width_out << "x" << height_out << "!");
|
||||
return SIZE_TOO_LARGE;
|
||||
}
|
||||
@@ -1044,7 +1048,7 @@ LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::getAspectSizePr
|
||||
// unless the aspect is different in which case we have to allow resizing in one direction.
|
||||
if (mSnapshotType == SNAPSHOT_LOCAL && (mWidth >= window_width || mHeight >= window_height) && mWidth != width_out && mHeight != height_out)
|
||||
{
|
||||
Dout(dc::notice, "NOT up to date: required target size " << mWidth << "x" << mHeight <<
|
||||
Dout(dc::snapshot, "NOT up to date: required target size " << mWidth << "x" << mHeight <<
|
||||
" is larger or equal the window size (" << window_width << "x" << window_height << ")"
|
||||
" but unequal the (cropped) raw snapshot size (" << width_out << "x" << height_out << ")"
|
||||
" and target is disk!");
|
||||
@@ -1055,7 +1059,7 @@ LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::getAspectSizePr
|
||||
|
||||
LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::generateFormattedAndFullscreenPreview(bool delayed)
|
||||
{
|
||||
DoutEntering(dc::notice, "LLSnapshotLivePreview::generateFormattedAndFullscreenPreview(" << delayed << ")");
|
||||
DoutEntering(dc::snapshot, "LLSnapshotLivePreview::generateFormattedAndFullscreenPreview(" << delayed << ")");
|
||||
mFormattedUpToDate = false;
|
||||
|
||||
S32 w, h, crop_offset;
|
||||
@@ -1101,7 +1105,7 @@ LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::generateFormatt
|
||||
(mFormattedSnapshotQuality == mSnapshotQuality ||
|
||||
format != LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG))
|
||||
{
|
||||
Dout(dc::notice, "Already up to date.");
|
||||
Dout(dc::snapshot, "Already up to date.");
|
||||
mFormattedUpToDate = true;
|
||||
return ret;
|
||||
}
|
||||
@@ -1109,43 +1113,43 @@ LLSnapshotLivePreview::EAspectSizeProblem LLSnapshotLivePreview::generateFormatt
|
||||
#ifdef CWDEBUG
|
||||
if (!mFormattedImage)
|
||||
{
|
||||
Dout(dc::notice, "mFormattedImage == NULL!");
|
||||
Dout(dc::snapshot, "mFormattedImage == NULL!");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mFormattedWidth != mWidth)
|
||||
Dout(dc::notice, "Target width changed from " << mFormattedWidth << " to " << mWidth);
|
||||
Dout(dc::snapshot, "Target width changed from " << mFormattedWidth << " to " << mWidth);
|
||||
if (mFormattedHeight != mHeight)
|
||||
Dout(dc::notice, "Target height changed from " << mFormattedHeight << " to " << mHeight);
|
||||
Dout(dc::snapshot, "Target height changed from " << mFormattedHeight << " to " << mHeight);
|
||||
if (mFormattedRawWidth != w)
|
||||
Dout(dc::notice, "Cropped (raw) width changed from " << mFormattedRawWidth << " to " << w);
|
||||
Dout(dc::snapshot, "Cropped (raw) width changed from " << mFormattedRawWidth << " to " << w);
|
||||
if (mFormattedRawHeight != h)
|
||||
Dout(dc::notice, "Cropped (raw) height changed from " << mFormattedRawHeight << " to " << h);
|
||||
Dout(dc::snapshot, "Cropped (raw) height changed from " << mFormattedRawHeight << " to " << h);
|
||||
if (mFormattedCropOffset != crop_offset)
|
||||
Dout(dc::notice, "Crop offset changed from " << mFormattedCropOffset << " to " << crop_offset);
|
||||
Dout(dc::snapshot, "Crop offset changed from " << mFormattedCropOffset << " to " << crop_offset);
|
||||
if (mFormattedCropVertically != crop_vertically)
|
||||
Dout(dc::notice, "Crop direction changed from " << (mFormattedCropVertically ? "vertical" : "horizontal") << " to " << (crop_vertically ? "vertical" : "horizontal"));
|
||||
Dout(dc::snapshot, "Crop direction changed from " << (mFormattedCropVertically ? "vertical" : "horizontal") << " to " << (crop_vertically ? "vertical" : "horizontal"));
|
||||
if (mFormattedSnapshotFormat != format)
|
||||
Dout(dc::notice, "Format changed from " << mFormattedSnapshotFormat << " to " << format);
|
||||
Dout(dc::snapshot, "Format changed from " << mFormattedSnapshotFormat << " to " << format);
|
||||
if (!(mFormattedSnapshotQuality == mSnapshotQuality || format != LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG))
|
||||
Dout(dc::notice, "Format is JPEG and quality changed from " << mFormattedSnapshotQuality << " to " << mSnapshotQuality);
|
||||
Dout(dc::snapshot, "Format is JPEG and quality changed from " << mFormattedSnapshotQuality << " to " << mSnapshotQuality);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (delayed)
|
||||
{
|
||||
// Just set mFormattedUpToDate.
|
||||
Dout(dc::notice, "NOT up to date, but delayed. Returning.");
|
||||
Dout(dc::snapshot, "NOT up to date, but delayed. Returning.");
|
||||
return DELAYED;
|
||||
}
|
||||
|
||||
if (!mRawSnapshot)
|
||||
{
|
||||
Dout(dc::notice, "No raw snapshot exists.");
|
||||
Dout(dc::snapshot, "No raw snapshot exists.");
|
||||
return NO_RAW_IMAGE;
|
||||
}
|
||||
|
||||
Dout(dc::notice, "Generating a new formatted image!");
|
||||
Dout(dc::snapshot, "Generating a new formatted image!");
|
||||
|
||||
mFormattedWidth = mWidth;
|
||||
mFormattedHeight = mHeight;
|
||||
@@ -1313,7 +1317,7 @@ LLFloaterFeed* LLSnapshotLivePreview::getCaptionAndSaveFeed()
|
||||
++mOutstandingCallbacks;
|
||||
mSaveFailures = 0;
|
||||
addUsedBy(SNAPSHOT_FEED);
|
||||
Dout(dc::notice, "LLSnapshotLivePreview::getCaptionAndSaveFeed: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
Dout(dc::snapshot, "LLSnapshotLivePreview::getCaptionAndSaveFeed: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
|
||||
if (mFullScreenPreviewTexture.isNull())
|
||||
{
|
||||
@@ -1351,7 +1355,7 @@ LLFloaterPostcard* LLSnapshotLivePreview::savePostcard()
|
||||
++mOutstandingCallbacks;
|
||||
mSaveFailures = 0;
|
||||
addUsedBy(SNAPSHOT_POSTCARD);
|
||||
Dout(dc::notice, "LLSnapshotLivePreview::savePostcard: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
Dout(dc::snapshot, "LLSnapshotLivePreview::savePostcard: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
|
||||
if(mFullScreenPreviewTexture.isNull())
|
||||
{
|
||||
@@ -1382,9 +1386,10 @@ LLFloaterPostcard* LLSnapshotLivePreview::savePostcard()
|
||||
|
||||
class saveTextureUserData {
|
||||
public:
|
||||
saveTextureUserData(LLSnapshotLivePreview* self, int index) : mSelf(self), mSnapshotIndex(index) { }
|
||||
saveTextureUserData(LLSnapshotLivePreview* self, int index, bool temporary) : mSelf(self), mSnapshotIndex(index), mTemporary(temporary) { }
|
||||
LLSnapshotLivePreview* mSelf;
|
||||
int mSnapshotIndex;
|
||||
bool mTemporary;
|
||||
};
|
||||
|
||||
void LLSnapshotLivePreview::saveTexture()
|
||||
@@ -1397,7 +1402,7 @@ void LLSnapshotLivePreview::saveTexture()
|
||||
++mOutstandingCallbacks;
|
||||
mSaveFailures = 0;
|
||||
addUsedBy(SNAPSHOT_TEXTURE);
|
||||
Dout(dc::notice, "LLSnapshotLivePreview::saveTexture: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
Dout(dc::snapshot, "LLSnapshotLivePreview::saveTexture: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
saveStart(sSnapshotIndex);
|
||||
|
||||
// gen a new uuid for this asset
|
||||
@@ -1411,7 +1416,8 @@ void LLSnapshotLivePreview::saveTexture()
|
||||
LLAgentUI::buildFullname(who_took_it);
|
||||
LLAssetStorage::LLStoreAssetCallback callback = &LLSnapshotLivePreview::saveTextureDone;
|
||||
S32 expected_upload_cost = LLGlobalEconomy::Singleton::getInstance()->getPriceUpload();
|
||||
upload_new_resource(tid, // tid
|
||||
saveTextureUserData* user_data = new saveTextureUserData(this, sSnapshotIndex, gSavedSettings.getBOOL("TemporaryUpload"));
|
||||
if (!upload_new_resource(tid, // tid
|
||||
LLAssetType::AT_TEXTURE,
|
||||
"Snapshot : " + pos_string,
|
||||
"Taken by " + who_took_it + " at " + pos_string,
|
||||
@@ -1422,7 +1428,12 @@ void LLSnapshotLivePreview::saveTexture()
|
||||
LLFloaterPerms::getGroupPerms(), // that is more permissive than other uploads
|
||||
LLFloaterPerms::getEveryonePerms(),
|
||||
"Snapshot : " + pos_string,
|
||||
callback, expected_upload_cost, new saveTextureUserData(this, sSnapshotIndex));
|
||||
callback, expected_upload_cost, user_data, &LLSnapshotLivePreview::saveTextureDone2))
|
||||
{
|
||||
// Something went wrong.
|
||||
delete user_data;
|
||||
saveDone(SNAPSHOT_TEXTURE, false, sSnapshotIndex);
|
||||
}
|
||||
|
||||
gViewerWindow->playSnapshotAnimAndSound();
|
||||
LLViewerStats::getInstance()->incStat(LLViewerStats::ST_SNAPSHOT_COUNT );
|
||||
@@ -1438,7 +1449,7 @@ void LLSnapshotLivePreview::saveLocal()
|
||||
++mOutstandingCallbacks;
|
||||
mSaveFailures = 0;
|
||||
addUsedBy(SNAPSHOT_LOCAL);
|
||||
Dout(dc::notice, "LLSnapshotLivePreview::saveLocal: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
Dout(dc::snapshot, "LLSnapshotLivePreview::saveLocal: sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
saveStart(sSnapshotIndex);
|
||||
|
||||
gViewerWindow->saveImageNumbered(mFormattedImage, sSnapshotIndex); // This calls saveDone() immediately, or later.
|
||||
@@ -1446,7 +1457,7 @@ void LLSnapshotLivePreview::saveLocal()
|
||||
|
||||
void LLSnapshotLivePreview::close(LLFloaterSnapshot* view)
|
||||
{
|
||||
DoutEntering(dc::notice, "LLSnapshotLivePreview::close(" << (void*)view << ") [mOutstandingCallbacks = " << mOutstandingCallbacks << "]");
|
||||
DoutEntering(dc::snapshot, "LLSnapshotLivePreview::close(" << (void*)view << ") [mOutstandingCallbacks = " << mOutstandingCallbacks << "]");
|
||||
mCloseCalled = view;
|
||||
if (!mOutstandingCallbacks)
|
||||
{
|
||||
@@ -1454,6 +1465,7 @@ void LLSnapshotLivePreview::close(LLFloaterSnapshot* view)
|
||||
}
|
||||
else
|
||||
{
|
||||
view->setVisible(FALSE);
|
||||
view->setEnabled(FALSE);
|
||||
}
|
||||
}
|
||||
@@ -1479,11 +1491,11 @@ void LLSnapshotLivePreview::saveStart(int index)
|
||||
|
||||
void LLSnapshotLivePreview::saveDone(ESnapshotType type, bool success, int index)
|
||||
{
|
||||
DoutEntering(dc::notice, "LLSnapshotLivePreview::saveDone(" << type << ", " << success << ", " << index << ")");
|
||||
DoutEntering(dc::snapshot, "LLSnapshotLivePreview::saveDone(" << type << ", " << success << ", " << index << ")");
|
||||
|
||||
if (sSnapshotIndex != index)
|
||||
{
|
||||
Dout(dc::notice, "sSnapshotIndex (" << sSnapshotIndex << ") != index (" << index << ")");
|
||||
Dout(dc::snapshot, "sSnapshotIndex (" << sSnapshotIndex << ") != index (" << index << ")");
|
||||
|
||||
// The snapshot was already replaced, so this callback has nothing to do with us anymore.
|
||||
if (!success)
|
||||
@@ -1494,7 +1506,7 @@ void LLSnapshotLivePreview::saveDone(ESnapshotType type, bool success, int index
|
||||
}
|
||||
|
||||
--mOutstandingCallbacks;
|
||||
Dout(dc::notice, "sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
Dout(dc::snapshot, "sSnapshotIndex = " << sSnapshotIndex << "; mOutstandingCallbacks = " << mOutstandingCallbacks << ".");
|
||||
if (!success)
|
||||
{
|
||||
++mSaveFailures;
|
||||
@@ -1508,16 +1520,36 @@ void LLSnapshotLivePreview::saveDone(ESnapshotType type, bool success, int index
|
||||
}
|
||||
}
|
||||
|
||||
// This callback is only used for the *legacy* LLViewerAssetStorage::storeAssetData
|
||||
// (when the cap NewFileAgentInventory is not available) and temporaries.
|
||||
// See upload_new_resource.
|
||||
//static
|
||||
void LLSnapshotLivePreview::saveTextureDone(LLUUID const& asset_id, void* user_data, S32 status, LLExtStat ext_status)
|
||||
{
|
||||
bool success = status != LL_ERR_NOERR;
|
||||
LLResourceData* resource_data = (LLResourceData*)user_data;
|
||||
|
||||
bool success = status == LL_ERR_NOERR;
|
||||
if (!success)
|
||||
{
|
||||
LLSD args;
|
||||
args["REASON"] = std::string(LLAssetStorage::getErrorString(status));
|
||||
LLNotificationsUtil::add("UploadSnapshotFail", args);
|
||||
}
|
||||
saveTextureUserData* data = (saveTextureUserData*)resource_data->mUserData;
|
||||
bool temporary = data->mTemporary;
|
||||
data->mSelf->saveDone(SNAPSHOT_TEXTURE, success, data->mSnapshotIndex);
|
||||
delete data;
|
||||
|
||||
// Call the default call back.
|
||||
LLAssetStorage::LLStoreAssetCallback asset_callback = temporary ? &temp_upload_callback : &upload_done_callback;
|
||||
(*asset_callback)(asset_id, user_data, status, ext_status);
|
||||
}
|
||||
|
||||
// This callback used when the capability NewFileAgentInventory is available and it wasn't a temporary.
|
||||
// See upload_new_resource.
|
||||
//static
|
||||
void LLSnapshotLivePreview::saveTextureDone2(bool success, void* user_data)
|
||||
{
|
||||
saveTextureUserData* data = (saveTextureUserData*)user_data;
|
||||
data->mSelf->saveDone(SNAPSHOT_TEXTURE, success, data->mSnapshotIndex);
|
||||
delete data;
|
||||
@@ -1541,6 +1573,8 @@ void LLSnapshotLivePreview::doCloseAfterSave()
|
||||
else
|
||||
{
|
||||
mCloseCalled->setEnabled(TRUE);
|
||||
mCloseCalled->setVisible(TRUE);
|
||||
gFloaterView->bringToFront(mCloseCalled);
|
||||
mCloseCalled = NULL;
|
||||
}
|
||||
}
|
||||
@@ -1623,7 +1657,7 @@ void LLFloaterSnapshot::Impl::updateLayout(LLFloaterSnapshot* floaterp)
|
||||
S32 delta_height = 0;
|
||||
if (!gSavedSettings.getBOOL("AdvanceSnapshot"))
|
||||
{
|
||||
floaterp->getChild<LLComboBox>("feed_size_combo")->setCurrentByIndex(2); // 500x375
|
||||
floaterp->getChild<LLComboBox>("feed_size_combo")->setCurrentByIndex(2); // 500x375 (4:3)
|
||||
gSavedSettings.setS32("SnapshotFeedLastResolution", 2);
|
||||
|
||||
floaterp->getChild<LLComboBox>("postcard_size_combo")->setCurrentByIndex(0); // Current window
|
||||
@@ -1660,8 +1694,8 @@ void LLFloaterSnapshot::Impl::freezeTime(bool on)
|
||||
// can see and interact with fullscreen preview now
|
||||
if (previewp)
|
||||
{
|
||||
previewp->setVisible(TRUE);
|
||||
previewp->setEnabled(TRUE);
|
||||
previewp->setVisible(TRUE);
|
||||
}
|
||||
|
||||
// Freeze all avatars.
|
||||
@@ -1717,7 +1751,7 @@ void LLFloaterSnapshot::Impl::freezeTime(bool on)
|
||||
// static
|
||||
void LLFloaterSnapshot::Impl::updateControls(LLFloaterSnapshot* floater, bool delayed_formatted)
|
||||
{
|
||||
DoutEntering(dc::notice, "LLFloaterSnapshot::Impl::updateControls()");
|
||||
DoutEntering(dc::snapshot, "LLFloaterSnapshot::Impl::updateControls()");
|
||||
std::string fee = gHippoGridManager->getConnectedGrid()->getUploadFee();
|
||||
if (gSavedSettings.getBOOL("TemporaryUpload"))
|
||||
{
|
||||
@@ -2018,6 +2052,7 @@ void LLFloaterSnapshot::saveLocalDone(bool success, int index)
|
||||
//static
|
||||
void LLFloaterSnapshot::saveFeedDone(bool success, int index)
|
||||
{
|
||||
LLUploadDialog::modalUploadFinished();
|
||||
LLSnapshotLivePreview* previewp = LLFloaterSnapshot::Impl::getPreviewView();
|
||||
if (previewp)
|
||||
{
|
||||
@@ -2028,6 +2063,7 @@ void LLFloaterSnapshot::saveFeedDone(bool success, int index)
|
||||
//static
|
||||
void LLFloaterSnapshot::savePostcardDone(bool success, int index)
|
||||
{
|
||||
LLUploadDialog::modalUploadFinished();
|
||||
LLSnapshotLivePreview* previewp = LLFloaterSnapshot::Impl::getPreviewView();
|
||||
if (previewp)
|
||||
{
|
||||
@@ -2223,7 +2259,7 @@ void LLFloaterSnapshot::Impl::onCommitQuality(LLUICtrl* ctrl, void* data)
|
||||
//static
|
||||
void LLFloaterSnapshot::Impl::onQualityMouseUp(void* data)
|
||||
{
|
||||
Dout(dc::notice, "Calling LLFloaterSnapshot::Impl::QualityMouseUp()");
|
||||
Dout(dc::snapshot, "Calling LLFloaterSnapshot::Impl::QualityMouseUp()");
|
||||
LLFloaterSnapshot* view = (LLFloaterSnapshot *)data;
|
||||
updateControls(view);
|
||||
}
|
||||
@@ -2502,6 +2538,15 @@ void LLFloaterSnapshot::Impl::updateResolution(LLUICtrl* ctrl, void* data, bool
|
||||
previewp->setSize(gSavedSettings.getS32(lastSnapshotWidthName()), gSavedSettings.getS32(lastSnapshotHeightName()));
|
||||
}
|
||||
}
|
||||
else if (height == -2)
|
||||
{
|
||||
// The size is actually the source aspect now, encoded in the width.
|
||||
F32 source_aspect = width / 630.f;
|
||||
// Use the size of the current window, cropped to the required aspect.
|
||||
width = llmin(gViewerWindow->getWindowDisplayWidth(), llround(gViewerWindow->getWindowDisplayHeight() * source_aspect));
|
||||
height = llmin(gViewerWindow->getWindowDisplayHeight(), llround(gViewerWindow->getWindowDisplayWidth() / source_aspect));
|
||||
previewp->setSize(width, height);
|
||||
}
|
||||
else
|
||||
{
|
||||
// use the resolution from the selected pre-canned drop-down choice
|
||||
@@ -2948,9 +2993,9 @@ void LLFloaterSnapshot::onOpen()
|
||||
|
||||
void LLFloaterSnapshot::onClose(bool app_quitting)
|
||||
{
|
||||
gSnapshotFloaterView->setEnabled(FALSE);
|
||||
// Set invisible so it doesn't eat tooltips. JC
|
||||
gSnapshotFloaterView->setVisible(FALSE);
|
||||
gSnapshotFloaterView->setEnabled(FALSE);
|
||||
gSavedSettings.setBOOL("SnapshotBtnState", FALSE);
|
||||
impl.freezeTime(false);
|
||||
destroy();
|
||||
@@ -2980,6 +3025,8 @@ void LLFloaterSnapshot::show(void*)
|
||||
|
||||
sInstance->open(); /* Flawfinder: ignore */
|
||||
sInstance->focusFirstItem(FALSE);
|
||||
sInstance->setEnabled(TRUE);
|
||||
sInstance->setVisible(TRUE);
|
||||
gSnapshotFloaterView->setEnabled(TRUE);
|
||||
gSnapshotFloaterView->setVisible(TRUE);
|
||||
gSnapshotFloaterView->adjustToFitScreen(sInstance, FALSE);
|
||||
@@ -3090,7 +3137,7 @@ BOOL LLFloaterSnapshot::handleMouseUp(S32 x, S32 y, MASK mask)
|
||||
|
||||
LLSnapshotFloaterView::LLSnapshotFloaterView( const std::string& name, const LLRect& rect ) : LLFloaterView(name, rect)
|
||||
{
|
||||
setMouseOpaque(TRUE);
|
||||
setMouseOpaque(FALSE);
|
||||
setEnabled(FALSE);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,8 +63,7 @@ extern AIHTTPTimeoutPolicy placeAvatarTeleportResponder_timeout;
|
||||
// OGPX TODO: should this be combined with the Login responder for rez_avatar/place?
|
||||
// OGPX TODO: mResult should not get replaced in result(), instead
|
||||
// should replace individual LLSD fields in mResult.
|
||||
class LLPlaceAvatarTeleportResponder :
|
||||
public LLHTTPClient::ResponderWithResult
|
||||
class LLPlaceAvatarTeleportResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
public:
|
||||
LLPlaceAvatarTeleportResponder()
|
||||
@@ -75,7 +74,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
LL_INFOS("OGPX") << "LLPlaceAvatarTeleportResponder error in TP "
|
||||
<< statusNum << " " << reason << LL_ENDL;
|
||||
@@ -90,7 +89,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
|
||||
LLSD result;
|
||||
@@ -221,7 +220,8 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return placeAvatarTeleportResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return placeAvatarTeleportResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLPlaceAvatarTeleportResponder"; }
|
||||
};
|
||||
|
||||
// Statics
|
||||
|
||||
@@ -113,13 +113,13 @@ class LLIamHere : public LLHTTPClient::ResponderWithResult
|
||||
mParent = parentIn;
|
||||
};
|
||||
|
||||
virtual void result( const LLSD& content )
|
||||
/*virtual*/ void result( const LLSD& content )
|
||||
{
|
||||
if ( mParent )
|
||||
mParent->setSiteIsAlive( true );
|
||||
};
|
||||
|
||||
virtual void error( U32 status, const std::string& reason )
|
||||
/*virtual*/ void error( U32 status, const std::string& reason )
|
||||
{
|
||||
if ( mParent )
|
||||
{
|
||||
@@ -131,7 +131,8 @@ class LLIamHere : public LLHTTPClient::ResponderWithResult
|
||||
}
|
||||
};
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return iamHere_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return iamHere_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLIamHere"; }
|
||||
};
|
||||
|
||||
// this is global and not a class member to keep crud out of the header file
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
|
||||
LLHandle<LLFloater> mParent;
|
||||
|
||||
virtual void completedHeaders(U32 status, std::string const& reason, AIHTTPReceivedHeaders const& headers)
|
||||
/*virtual*/ void completedHeaders(U32 status, std::string const& reason, AIHTTPReceivedHeaders const& headers)
|
||||
{
|
||||
if (200 <= status && status < 300)
|
||||
{
|
||||
@@ -89,7 +89,9 @@ public:
|
||||
floater_url_entry->headerFetchComplete( status, resolved_mime_type );
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return mediaTypeResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return mediaTypeResponder_timeout; }
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "LLMediaTypeResponder"; }
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -1896,12 +1896,12 @@ extern AIHTTPTimeoutPolicy groupMemberDataResponder_timeout;
|
||||
class GroupMemberDataResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
public:
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return groupMemberDataResponder_timeout; }
|
||||
|
||||
GroupMemberDataResponder() {}
|
||||
virtual ~GroupMemberDataResponder() {}
|
||||
virtual void result(const LLSD& pContent);
|
||||
virtual void error(U32 pStatus, const std::string& pReason);
|
||||
/*virtual*/ void result(const LLSD& pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string& pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return groupMemberDataResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "GroupMemberDataResponder"; }
|
||||
private:
|
||||
LLSD mMemberData;
|
||||
};
|
||||
|
||||
@@ -44,9 +44,10 @@ extern AIHTTPTimeoutPolicy homeLocationResponder_timeout;
|
||||
/* Typedef, Enum, Class, Struct, etc. */
|
||||
class LLHomeLocationResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
virtual void result( const LLSD& content );
|
||||
virtual void error( U32 status, const std::string& reason );
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return homeLocationResponder_timeout; }
|
||||
/*virtual*/ void result( const LLSD& content );
|
||||
/*virtual*/ void error( U32 status, const std::string& reason );
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return homeLocationResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLHomeLocationResponder"; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -199,7 +199,7 @@ public:
|
||||
mAgents = agents_to_invite;
|
||||
}
|
||||
|
||||
virtual void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
//try an "old school" way.
|
||||
if ( statusNum == 400 )
|
||||
@@ -219,7 +219,8 @@ public:
|
||||
//the possible different language translations
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return startConferenceChatResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return startConferenceChatResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLStartConferenceChatResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mTempSessionID;
|
||||
@@ -306,9 +307,10 @@ class LLVoiceCallCapResponder : public LLHTTPClient::ResponderWithResult
|
||||
public:
|
||||
LLVoiceCallCapResponder(const LLUUID& session_id) : mSessionID(session_id) {};
|
||||
|
||||
virtual void error(U32 status, const std::string& reason); // called with bad status codes
|
||||
virtual void result(const LLSD& content);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return voiceCallCapResponder_timeout; }
|
||||
/*virtual*/ void error(U32 status, const std::string& reason); // called with bad status codes
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return voiceCallCapResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLVoiceCallCapResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mSessionID;
|
||||
@@ -1562,13 +1564,14 @@ public:
|
||||
mSessionID = session_id;
|
||||
}
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
llinfos << "Error inviting all agents to session" << llendl;
|
||||
//throw something back to the viewer here?
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return sessionInviteResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return sessionInviteResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLSessionInviteResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mSessionID;
|
||||
|
||||
@@ -94,8 +94,7 @@ LLIMMgr* gIMMgr = NULL;
|
||||
//{
|
||||
// return (LLStringUtil::compareDict( a->mName, b->mName ) < 0);
|
||||
//}
|
||||
class LLViewerChatterBoxInvitationAcceptResponder :
|
||||
public LLHTTPClient::ResponderWithResult
|
||||
class LLViewerChatterBoxInvitationAcceptResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
public:
|
||||
LLViewerChatterBoxInvitationAcceptResponder(
|
||||
@@ -106,7 +105,7 @@ public:
|
||||
mInvitiationType = invitation_type;
|
||||
}
|
||||
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
if ( gIMMgr)
|
||||
{
|
||||
@@ -154,8 +153,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
//throw something back to the viewer here?
|
||||
if ( gIMMgr )
|
||||
{
|
||||
@@ -177,7 +176,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerChatterBoxInvitationAcceptResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerChatterBoxInvitationAcceptResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLViewerChatterBoxInvitationAcceptResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mSessionID;
|
||||
|
||||
@@ -483,12 +483,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
LL_WARNS("InvAPI") << "CreateInventoryCategory failed. status = " << status << ", reasion = \"" << reason << "\"" << LL_ENDL;
|
||||
}
|
||||
|
||||
virtual void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
//Server has created folder.
|
||||
|
||||
@@ -515,7 +515,8 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return createInventoryCategoryResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return createInventoryCategoryResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLCreateInventoryCategoryResponder"; }
|
||||
|
||||
private:
|
||||
void (*mCallback)(const LLSD&, void*);
|
||||
|
||||
@@ -87,9 +87,10 @@ public:
|
||||
{
|
||||
public:
|
||||
fetchInventoryResponder(const LLSD& request_sd) : mRequestSD(request_sd) {};
|
||||
void result(const LLSD& content);
|
||||
void error(U32 status, const std::string& reason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return fetchInventoryResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return fetchInventoryResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "fetchInventoryResponder"; }
|
||||
protected:
|
||||
LLSD mRequestSD;
|
||||
};
|
||||
|
||||
@@ -376,9 +376,10 @@ class LLInventoryModelFetchItemResponder : public LLInventoryModel::fetchInvento
|
||||
{
|
||||
public:
|
||||
LLInventoryModelFetchItemResponder(const LLSD& request_sd) : LLInventoryModel::fetchInventoryResponder(request_sd) {};
|
||||
void result(const LLSD& content);
|
||||
void error(U32 status, const std::string& reason);
|
||||
AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return inventoryModelFetchItemResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return inventoryModelFetchItemResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLInventoryModelFetchItemResponder"; }
|
||||
};
|
||||
|
||||
void LLInventoryModelFetchItemResponder::result( const LLSD& content )
|
||||
@@ -393,7 +394,7 @@ void LLInventoryModelFetchItemResponder::error( U32 status, const std::string& r
|
||||
LLInventoryModelBackgroundFetch::instance().incrFetchCount(-1);
|
||||
}
|
||||
|
||||
class LLInventoryModelFetchDescendentsResponder: public LLHTTPClient::ResponderWithResult
|
||||
class LLInventoryModelFetchDescendentsResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
public:
|
||||
LLInventoryModelFetchDescendentsResponder(const LLSD& request_sd, uuid_vec_t recursive_cats) :
|
||||
@@ -401,9 +402,10 @@ class LLInventoryModelFetchDescendentsResponder: public LLHTTPClient::ResponderW
|
||||
mRecursiveCatUUIDs(recursive_cats)
|
||||
{};
|
||||
//LLInventoryModelFetchDescendentsResponder() {};
|
||||
void result(const LLSD& content);
|
||||
void error(U32 status, const std::string& reason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return inventoryModelFetchDescendentsResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return inventoryModelFetchDescendentsResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLInventoryModelFetchDescendentsResponder"; }
|
||||
|
||||
protected:
|
||||
BOOL getIsRecursive(const LLUUID& cat_id) const;
|
||||
|
||||
@@ -40,8 +40,9 @@ extern AIHTTPTimeoutPolicy mapLayerResponder_timeout;
|
||||
|
||||
class LLMapLayerResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
virtual void result(const LLSD& content);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return mapLayerResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return mapLayerResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLMapLayerResponder"; }
|
||||
};
|
||||
|
||||
#endif // LL_LLMAPLAYERRESPONDER_H
|
||||
|
||||
@@ -157,9 +157,7 @@ namespace LLMarketplaceImport
|
||||
class LLImportPostResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
{
|
||||
public:
|
||||
AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return MPImportPostResponder_timeout; }
|
||||
|
||||
void completed(U32 status, const std::string& reason, const LLSD& content)
|
||||
/*virtual*/ void completed(U32 status, const std::string& reason, const LLSD& content)
|
||||
{
|
||||
slmPostTimer.stop();
|
||||
|
||||
@@ -189,13 +187,14 @@ namespace LLMarketplaceImport
|
||||
sImportResultStatus = status;
|
||||
sImportId = content;
|
||||
}
|
||||
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return MPImportPostResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLImportPostResponder"; }
|
||||
};
|
||||
|
||||
class LLImportGetResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
{
|
||||
public:
|
||||
AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return MPImportGetResponder_timeout; }
|
||||
|
||||
/*virtual*/ bool followRedir(void) const { return true; }
|
||||
/*virtual*/ bool needsHeaders(void) const { return true; }
|
||||
|
||||
@@ -215,7 +214,7 @@ namespace LLMarketplaceImport
|
||||
}
|
||||
}
|
||||
|
||||
void completed(U32 status, const std::string& reason, const LLSD& content)
|
||||
/*virtual*/ void completed(U32 status, const std::string& reason, const LLSD& content)
|
||||
{
|
||||
slmGetTimer.stop();
|
||||
|
||||
@@ -244,6 +243,9 @@ namespace LLMarketplaceImport
|
||||
sImportResultStatus = status;
|
||||
sImportResults = content;
|
||||
}
|
||||
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return MPImportGetResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLImportGetResponder"; }
|
||||
};
|
||||
|
||||
// Basic API
|
||||
|
||||
@@ -226,11 +226,12 @@ public:
|
||||
LLMeshRepoThread::sActiveHeaderRequests--;
|
||||
}
|
||||
|
||||
virtual void completedRaw(U32 status, const std::string& reason,
|
||||
/*virtual*/ void completedRaw(U32 status, const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
const LLIOPipe::buffer_ptr_t& buffer);
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshHeaderResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshHeaderResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLMeshHeaderResponder"; }
|
||||
};
|
||||
|
||||
class LLMeshLODResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
@@ -252,11 +253,12 @@ public:
|
||||
LLMeshRepoThread::sActiveLODRequests--;
|
||||
}
|
||||
|
||||
virtual void completedRaw(U32 status, const std::string& reason,
|
||||
/*virtual*/ void completedRaw(U32 status, const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
const LLIOPipe::buffer_ptr_t& buffer);
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshLODResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshLODResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLMeshLODResponder"; }
|
||||
};
|
||||
|
||||
class LLMeshSkinInfoResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
@@ -271,11 +273,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void completedRaw(U32 status, const std::string& reason,
|
||||
/*virtual*/ void completedRaw(U32 status, const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
const LLIOPipe::buffer_ptr_t& buffer);
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshSkinInfoResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshSkinInfoResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLMeshSkinInfoResponder"; }
|
||||
};
|
||||
|
||||
class LLMeshDecompositionResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
@@ -290,11 +293,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void completedRaw(U32 status, const std::string& reason,
|
||||
/*virtual*/ void completedRaw(U32 status, const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
const LLIOPipe::buffer_ptr_t& buffer);
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshDecompositionResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshDecompositionResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLMeshDecompositionResponder"; }
|
||||
};
|
||||
|
||||
class LLMeshPhysicsShapeResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
@@ -309,11 +313,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void completedRaw(U32 status, const std::string& reason,
|
||||
/*virtual*/ void completedRaw(U32 status, const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
const LLIOPipe::buffer_ptr_t& buffer);
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshPhysicsShapeResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return meshPhysicsShapeResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLMeshPhysicsShapeResponder"; }
|
||||
};
|
||||
|
||||
#if MESH_IMPORT
|
||||
@@ -366,7 +371,7 @@ void log_upload_error(S32 status, const LLSD& content, std::string stage, std::s
|
||||
}
|
||||
}
|
||||
|
||||
class LLWholeModelFeeResponder: public LLHTTPClient::ResponderWithCompleted
|
||||
class LLWholeModelFeeResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
{
|
||||
LLMeshUploadThread* mThread;
|
||||
LLSD mModelData;
|
||||
@@ -378,7 +383,7 @@ public:
|
||||
mObserverHandle(observer_handle)
|
||||
{
|
||||
}
|
||||
virtual void completed(U32 status,
|
||||
/*virtual*/ void completed(U32 status,
|
||||
const std::string& reason,
|
||||
const LLSD& content)
|
||||
{
|
||||
@@ -417,10 +422,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return wholeModelFeeResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return wholeModelFeeResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLWholeModelFeeResponder"; }
|
||||
};
|
||||
|
||||
class LLWholeModelUploadResponder: public LLHTTPClient::ResponderWithCompleted
|
||||
class LLWholeModelUploadResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
{
|
||||
LLMeshUploadThread* mThread;
|
||||
LLSD mModelData;
|
||||
@@ -433,7 +439,7 @@ public:
|
||||
mObserverHandle(observer_handle)
|
||||
{
|
||||
}
|
||||
virtual void completed(U32 status,
|
||||
/*virtual*/ void completed(U32 status,
|
||||
const std::string& reason,
|
||||
const LLSD& content)
|
||||
{
|
||||
@@ -475,7 +481,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return wholeModelUploadResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return wholeModelUploadResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLWholeModelUploadResponder"; }
|
||||
};
|
||||
#endif //MESH_IMPORT
|
||||
|
||||
|
||||
@@ -693,7 +693,7 @@ public:
|
||||
}
|
||||
|
||||
//If we get back a normal response, handle it here
|
||||
virtual void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
//Ack'd the proposal initialization, now let's finish up.
|
||||
LLPanelGroupVoting::handleResponse(
|
||||
@@ -702,7 +702,7 @@ public:
|
||||
}
|
||||
|
||||
//If we get back an error (not found, etc...), handle it here
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
llinfos << "LLPanelGroupVotingResponder::error "
|
||||
<< status << ": " << reason << llendl;
|
||||
@@ -710,8 +710,8 @@ public:
|
||||
LLPanelGroupVoting::handleFailure(mGroupID);
|
||||
}
|
||||
|
||||
//Return our timeout policy.
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return startGroupVoteResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return startGroupVoteResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLStartGroupVoteResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mGroupID;
|
||||
@@ -726,7 +726,7 @@ public:
|
||||
}
|
||||
|
||||
//If we get back a normal response, handle it here
|
||||
virtual void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
//Ack'd the proposal initialization, now let's finish up.
|
||||
LLPanelGroupVoting::handleResponse(
|
||||
@@ -736,7 +736,7 @@ public:
|
||||
}
|
||||
|
||||
//If we get back an error (not found, etc...), handle it here
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
llinfos << "LLPanelGroupVotingResponder::error "
|
||||
<< status << ": " << reason << llendl;
|
||||
@@ -745,7 +745,8 @@ public:
|
||||
}
|
||||
|
||||
//Return out timeout policy.
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return groupProposalBallotResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return groupProposalBallotResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLGroupProposalBallotResponder"; }
|
||||
|
||||
private:
|
||||
LLUUID mGroupID;
|
||||
|
||||
@@ -192,7 +192,9 @@ class LLIamHereLogin : public LLHTTPClient::ResponderHeadersOnly
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return iamHereLogin_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return iamHereLogin_timeout; }
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "LLIamHereLogin"; }
|
||||
};
|
||||
|
||||
// this is global and not a class member to keep crud out of the header file
|
||||
|
||||
@@ -116,9 +116,10 @@ public:
|
||||
NavMeshStatusResponder(const std::string &pCapabilityURL, LLViewerRegion *pRegion, bool pIsGetStatusOnly);
|
||||
virtual ~NavMeshStatusResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string& pReason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return navMeshStatusResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string& pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return navMeshStatusResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "NavMeshStatusResponder"; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -139,9 +140,10 @@ public:
|
||||
NavMeshResponder(const std::string &pCapabilityURL, U32 pNavMeshVersion, LLPathfindingNavMeshPtr pNavMeshPtr);
|
||||
virtual ~NavMeshResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string& pReason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return navMeshResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string& pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return navMeshResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "NavMeshResponder"; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -161,9 +163,10 @@ public:
|
||||
AgentStateResponder(const std::string &pCapabilityURL);
|
||||
virtual ~AgentStateResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string& pReason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return agentStateResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string& pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return agentStateResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "AgentStateResponder"; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -181,9 +184,10 @@ public:
|
||||
NavMeshRebakeResponder(const std::string &pCapabilityURL, LLPathfindingManager::rebake_navmesh_callback_t pRebakeNavMeshCallback);
|
||||
virtual ~NavMeshRebakeResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string& pReason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return navMeshRebakeResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string& pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return navMeshRebakeResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "NavMeshRebakeResponder"; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -241,9 +245,10 @@ public:
|
||||
ObjectLinksetsResponder(const std::string &pCapabilityURL, LinksetsResponderPtr pLinksetsResponsderPtr);
|
||||
virtual ~ObjectLinksetsResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string &pReason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return objectLinksetsResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string &pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return objectLinksetsResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "ObjectLinksetsResponder"; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -261,9 +266,10 @@ public:
|
||||
TerrainLinksetsResponder(const std::string &pCapabilityURL, LinksetsResponderPtr pLinksetsResponsderPtr);
|
||||
virtual ~TerrainLinksetsResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string &pReason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return terrainLinksetsResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string &pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return terrainLinksetsResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "TerrainLinksetsResponder"; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -281,9 +287,10 @@ public:
|
||||
CharactersResponder(const std::string &pCapabilityURL, LLPathfindingManager::request_id_t pRequestId, LLPathfindingManager::object_request_callback_t pCharactersCallback);
|
||||
virtual ~CharactersResponder();
|
||||
|
||||
virtual void result(const LLSD &pContent);
|
||||
virtual void error(U32 pStatus, const std::string &pReason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return charactersResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD &pContent);
|
||||
/*virtual*/ void error(U32 pStatus, const std::string &pReason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return charactersResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "CharactersResponder"; }
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -46,19 +46,20 @@ class LLProductInfoRequestResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
public:
|
||||
//If we get back a normal response, handle it here
|
||||
virtual void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
LLProductInfoRequestManager::instance().setSkuDescriptions(content);
|
||||
}
|
||||
|
||||
//If we get back an error (not found, etc...), handle it here
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
llwarns << "LLProductInfoRequest::error("
|
||||
<< status << ": " << reason << ")" << llendl;
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return productInfoRequestResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return productInfoRequestResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLProductInfoRequestResponder"; }
|
||||
};
|
||||
|
||||
LLProductInfoRequestManager::LLProductInfoRequestManager() : mSkuDescriptions()
|
||||
|
||||
@@ -46,10 +46,11 @@ class LLRemoteParcelRequestResponder : public LLHTTPClient::ResponderWithResult
|
||||
public:
|
||||
LLRemoteParcelRequestResponder(LLHandle<LLPanel> place_panel_handle);
|
||||
//If we get back a normal response, handle it here
|
||||
virtual void result(const LLSD& content);
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
//If we get back an error (not found, etc...), handle it here
|
||||
virtual void error(U32 status, const std::string& reason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return remoteParcelRequestResponder_timeout; }
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return remoteParcelRequestResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLRemoteParcelRequestResponder"; }
|
||||
|
||||
protected:
|
||||
LLHandle<LLPanel> mPlacePanelHandle;
|
||||
|
||||
@@ -312,8 +312,6 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return HTTPGetResponder_timeout; }
|
||||
|
||||
#if 0 //Apparently, SL never sends content-range and instead sends transfer-encoding: chunked, so disabling for now
|
||||
/*virtual*/ bool needsHeaders(void) const { return true; }
|
||||
|
||||
@@ -413,6 +411,9 @@ public:
|
||||
return mFollowRedir;
|
||||
}
|
||||
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return HTTPGetResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "HTTPGetResponder"; }
|
||||
|
||||
private:
|
||||
LLTextureFetch* mFetcher;
|
||||
LLUUID mID;
|
||||
@@ -3107,8 +3108,7 @@ TFReqSendMetrics::doWork(LLTextureFetch * fetcher)
|
||||
mFetcher->decrCurlPOSTCount();
|
||||
}
|
||||
|
||||
// virtual
|
||||
void error(U32 status_num, const std::string & reason)
|
||||
/*virtual*/ void error(U32 status_num, const std::string & reason)
|
||||
{
|
||||
if (mLiveSequence == mExpectedSequence)
|
||||
{
|
||||
@@ -3118,8 +3118,7 @@ TFReqSendMetrics::doWork(LLTextureFetch * fetcher)
|
||||
<< reason << LL_ENDL;
|
||||
}
|
||||
|
||||
// virtual
|
||||
void result(const LLSD & content)
|
||||
/*virtual*/ void result(const LLSD & content)
|
||||
{
|
||||
if (mLiveSequence == mExpectedSequence)
|
||||
{
|
||||
@@ -3127,7 +3126,8 @@ TFReqSendMetrics::doWork(LLTextureFetch * fetcher)
|
||||
mReportingStarted = true;
|
||||
}
|
||||
}
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return lcl_responder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return lcl_responder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "lcl_responder"; }
|
||||
|
||||
private:
|
||||
LLTextureFetch * mFetcher;
|
||||
|
||||
@@ -43,7 +43,7 @@ extern AIHTTPTimeoutPolicy translationReceiver_timeout;
|
||||
class LLTranslate
|
||||
{
|
||||
public :
|
||||
class TranslationReceiver: public LLHTTPClient::ResponderWithResult
|
||||
class TranslationReceiver : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
protected:
|
||||
TranslationReceiver(const std::string &fromLang, const std::string &toLang)
|
||||
@@ -60,15 +60,13 @@ public :
|
||||
{
|
||||
}
|
||||
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
LL_WARNS("Translate") << "URL Request error: " << reason << LL_ENDL;
|
||||
handleFailure();
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return translationReceiver_timeout; }
|
||||
|
||||
virtual void completedRaw(
|
||||
/*virtual*/ void completedRaw(
|
||||
U32 status,
|
||||
const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
@@ -100,6 +98,8 @@ public :
|
||||
handleResponse(translation, detectedLanguage);
|
||||
}
|
||||
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return translationReceiver_timeout; }
|
||||
|
||||
protected:
|
||||
const std::string m_toLang;
|
||||
const std::string m_fromLang;
|
||||
|
||||
@@ -75,7 +75,7 @@ LLUploadDialog::LLUploadDialog( const std::string& msg)
|
||||
}
|
||||
LLUploadDialog::sDialog = this;
|
||||
|
||||
const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF );
|
||||
const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF_BIG );
|
||||
LLRect msg_rect;
|
||||
for (int line_num=0; line_num<16; ++line_num)
|
||||
{
|
||||
@@ -91,7 +91,10 @@ LLUploadDialog::LLUploadDialog( const std::string& msg)
|
||||
|
||||
void LLUploadDialog::setMessage( const std::string& msg)
|
||||
{
|
||||
const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF );
|
||||
S32 const min_width = gViewerWindow->getWindowWidthRaw() / 10;
|
||||
S32 const min_height = gViewerWindow->getWindowHeightRaw() / 10;
|
||||
|
||||
const LLFontGL* font = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF_BIG );
|
||||
|
||||
const S32 VPAD = 16;
|
||||
const S32 HPAD = 25;
|
||||
@@ -127,14 +130,14 @@ void LLUploadDialog::setMessage( const std::string& msg)
|
||||
|
||||
|
||||
S32 line_height = S32( font->getLineHeight() + 0.99f );
|
||||
S32 dialog_width = max_msg_width + 2 * HPAD;
|
||||
S32 dialog_height = line_height * msg_lines.size() + 2 * VPAD;
|
||||
S32 dialog_width = llmax(max_msg_width + 2 * HPAD, min_width);
|
||||
S32 dialog_height = llmax(line_height * (S32)msg_lines.size() + 2 * VPAD, min_height);
|
||||
|
||||
reshape( dialog_width, dialog_height, FALSE );
|
||||
|
||||
// Message
|
||||
S32 msg_x = (getRect().getWidth() - max_msg_width) / 2;
|
||||
S32 msg_y = getRect().getHeight() - VPAD - line_height;
|
||||
S32 msg_y = (getRect().getHeight() + line_height * msg_lines.size()) / 2 - line_height;
|
||||
int line_num;
|
||||
for (line_num=0; line_num<16; ++line_num)
|
||||
{
|
||||
|
||||
@@ -104,11 +104,10 @@ public:
|
||||
|
||||
LLUploadModelPremissionsResponder(const LLHandle<LLUploadPermissionsObserver>& observer);
|
||||
|
||||
void error(U32 status, const std::string& reason);
|
||||
|
||||
void result(const LLSD& content);
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return uploadModelPremissionsResponder_timeout; }
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return uploadModelPremissionsResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLUploadModelPremissionsResponder"; }
|
||||
|
||||
private:
|
||||
LLHandle<LLUploadPermissionsObserver> mObserverHandle;
|
||||
|
||||
@@ -68,7 +68,8 @@ public:
|
||||
LLViewerDisplayName::sSetDisplayNameSignal.disconnect_all_slots();
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return setDisplayNameResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return setDisplayNameResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLSetDisplayNameResponder"; }
|
||||
};
|
||||
|
||||
void LLViewerDisplayName::set(const std::string& display_name, const set_name_slot_t& slot)
|
||||
|
||||
@@ -117,6 +117,8 @@ public:
|
||||
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return mimeDiscoveryResponder_timeout; }
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "LLMimeDiscoveryResponder"; }
|
||||
|
||||
public:
|
||||
viewer_media_t mMediaImpl;
|
||||
std::string mDefaultMimeType;
|
||||
@@ -135,16 +137,16 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
/* virtual */ bool needsHeaders(void) const { return true; }
|
||||
/*virtual*/ bool needsHeaders(void) const { return true; }
|
||||
|
||||
/* virtual */ void completedHeaders(U32 status, std::string const& reason, AIHTTPReceivedHeaders const& headers)
|
||||
/*virtual*/ void completedHeaders(U32 status, std::string const& reason, AIHTTPReceivedHeaders const& headers)
|
||||
{
|
||||
LL_DEBUGS("MediaAuth") << "status = " << status << ", reason = " << reason << LL_ENDL;
|
||||
LL_DEBUGS("MediaAuth") << headers << LL_ENDL;
|
||||
LLViewerMedia::openIDCookieResponse(get_cookie("agni_sl_session_id"));
|
||||
}
|
||||
|
||||
/* virtual */ void completedRaw(
|
||||
/*virtual*/ void completedRaw(
|
||||
U32 status,
|
||||
const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
@@ -154,26 +156,21 @@ public:
|
||||
// We don't care about the content of the response, only the set-cookie header.
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerMediaOpenIDResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerMediaOpenIDResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLViewerMediaOpenIDResponder"; }
|
||||
};
|
||||
|
||||
class LLViewerMediaWebProfileResponder : public LLHTTPClient::ResponderWithCompleted
|
||||
{
|
||||
LOG_CLASS(LLViewerMediaWebProfileResponder);
|
||||
public:
|
||||
LLViewerMediaWebProfileResponder(std::string host)
|
||||
{
|
||||
mHost = host;
|
||||
}
|
||||
LLViewerMediaWebProfileResponder(std::string host) : mHost(host) { }
|
||||
~LLViewerMediaWebProfileResponder() { }
|
||||
|
||||
~LLViewerMediaWebProfileResponder()
|
||||
{
|
||||
}
|
||||
/*virtual*/ bool followRedir(void) const { return true; }
|
||||
/*virtual*/ bool needsHeaders(void) const { return true; }
|
||||
|
||||
/* virtual */ bool followRedir(void) const { return true; }
|
||||
/* virtual */ bool needsHeaders(void) const { return true; }
|
||||
|
||||
/* virtual */ void completedHeaders(U32 status, std::string const& reason, AIHTTPReceivedHeaders const& headers)
|
||||
/*virtual*/ void completedHeaders(U32 status, std::string const& reason, AIHTTPReceivedHeaders const& headers)
|
||||
{
|
||||
LL_INFOS("MediaAuth") << "status = " << status << ", reason = " << reason << LL_ENDL;
|
||||
LL_INFOS("MediaAuth") << headers << LL_ENDL;
|
||||
@@ -204,7 +201,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void completedRaw(
|
||||
/*virtual*/ void completedRaw(
|
||||
U32 status,
|
||||
const std::string& reason,
|
||||
const LLChannelDescriptors& channels,
|
||||
@@ -214,8 +211,10 @@ public:
|
||||
// We don't care about the content of the response, only the set-cookie header.
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerMediaWebProfileResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerMediaWebProfileResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLViewerMediaWebProfileResponder"; }
|
||||
|
||||
private:
|
||||
std::string mHost;
|
||||
};
|
||||
|
||||
|
||||
@@ -1155,7 +1155,7 @@ LLSD generate_new_resource_upload_capability_body(LLAssetType::EType asset_type,
|
||||
return body;
|
||||
}
|
||||
|
||||
void upload_new_resource(const LLTransactionID &tid, LLAssetType::EType asset_type,
|
||||
bool upload_new_resource(const LLTransactionID &tid, LLAssetType::EType asset_type,
|
||||
std::string name,
|
||||
std::string desc, S32 compression_info,
|
||||
LLFolderType::EType destination_folder_type,
|
||||
@@ -1166,11 +1166,12 @@ void upload_new_resource(const LLTransactionID &tid, LLAssetType::EType asset_ty
|
||||
const std::string& display_name,
|
||||
LLAssetStorage::LLStoreAssetCallback callback,
|
||||
S32 expected_upload_cost,
|
||||
void *userdata)
|
||||
void *userdata,
|
||||
void (*callback2)(bool, void*))
|
||||
{
|
||||
if(gDisconnected)
|
||||
{
|
||||
return ;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1207,7 +1208,7 @@ void upload_new_resource(const LLTransactionID &tid, LLAssetType::EType asset_ty
|
||||
body["expected_upload_cost"] = LLSD::Integer(expected_upload_cost);
|
||||
|
||||
LLHTTPClient::post(url, body,
|
||||
new LLNewAgentInventoryResponder(body, uuid, asset_type));
|
||||
new LLNewAgentInventoryResponder(body, uuid, asset_type, callback2, userdata));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1230,7 +1231,7 @@ void upload_new_resource(const LLTransactionID &tid, LLAssetType::EType asset_ty
|
||||
args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol();
|
||||
args["[AMOUNT]"] = llformat("%d", expected_upload_cost);
|
||||
LLFloaterBuyCurrency::buyCurrency( LLTrans::getString("UploadingCosts", args), expected_upload_cost );
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1260,6 +1261,9 @@ void upload_new_resource(const LLTransactionID &tid, LLAssetType::EType asset_ty
|
||||
TRUE,
|
||||
temporary);
|
||||
}
|
||||
|
||||
// Return true when a call to a callback function will follow.
|
||||
return true;
|
||||
}
|
||||
|
||||
LLAssetID generate_asset_id_for_new_upload(const LLTransactionID& tid)
|
||||
|
||||
@@ -66,7 +66,8 @@ void upload_new_resource(const std::string& src_filename,
|
||||
S32 expected_upload_cost,
|
||||
void *userdata);
|
||||
|
||||
void upload_new_resource(const LLTransactionID &tid,
|
||||
// Return false if no upload attempt was done (and the callback will not be called).
|
||||
bool upload_new_resource(const LLTransactionID &tid,
|
||||
LLAssetType::EType type,
|
||||
std::string name,
|
||||
std::string desc,
|
||||
@@ -79,7 +80,13 @@ void upload_new_resource(const LLTransactionID &tid,
|
||||
const std::string& display_name,
|
||||
LLAssetStorage::LLStoreAssetCallback callback,
|
||||
S32 expected_upload_cost,
|
||||
void *userdata);
|
||||
void *userdata,
|
||||
void (*callback2)(bool, void*) = NULL);
|
||||
|
||||
// The default callback functions, called when 'callback' == NULL (for normal and temporary uploads).
|
||||
// user_data must be a LLResourceData allocated with new (or NULL).
|
||||
void upload_done_callback(const LLUUID& uuid, void* user_data, S32 result, LLExtStat ext_status);
|
||||
void temp_upload_callback(const LLUUID& uuid, void* user_data, S32 result, LLExtStat ext_status);
|
||||
|
||||
LLAssetID generate_asset_id_for_new_upload(const LLTransactionID& tid);
|
||||
|
||||
|
||||
@@ -3307,6 +3307,8 @@ protected:
|
||||
delete m_chat;
|
||||
}
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "ChatTranslationReceiver"; }
|
||||
|
||||
private:
|
||||
LLChat *m_chat;
|
||||
const BOOL m_history;
|
||||
@@ -3371,6 +3373,7 @@ protected:
|
||||
}
|
||||
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return authHandler_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "AuthHandler"; }
|
||||
};
|
||||
|
||||
void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
|
||||
|
||||
@@ -111,7 +111,7 @@ void setDefaultTextures()
|
||||
}
|
||||
}
|
||||
|
||||
class importResponder: public LLNewAgentInventoryResponder
|
||||
class importResponder : public LLNewAgentInventoryResponder
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -191,6 +191,8 @@ public:
|
||||
LLObjectBackup::getInstance()->updateMap(content["new_asset"].asUUID());
|
||||
LLObjectBackup::getInstance()->uploadNextAsset();
|
||||
}
|
||||
|
||||
/*virtual*/ char const* getName(void) const { return "importResponder"; }
|
||||
};
|
||||
|
||||
class CacheReadResponder : public LLTextureCache::ReadResponder
|
||||
|
||||
@@ -714,7 +714,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
llwarns
|
||||
<< "Transport error requesting object cost "
|
||||
@@ -726,7 +726,7 @@ public:
|
||||
clear_object_list_pending_requests();
|
||||
}
|
||||
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
if ( !content.isMap() || content.has("error") )
|
||||
{
|
||||
@@ -776,7 +776,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return objectCostResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return objectCostResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLObjectCostResponder"; }
|
||||
|
||||
private:
|
||||
LLSD mObjectIDs;
|
||||
@@ -804,7 +805,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
llwarns
|
||||
<< "Transport error requesting object physics flags "
|
||||
@@ -816,7 +817,7 @@ public:
|
||||
clear_object_list_pending_requests();
|
||||
}
|
||||
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
if ( !content.isMap() || content.has("error") )
|
||||
{
|
||||
@@ -873,7 +874,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return physicsFlagsResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return physicsFlagsResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLPhysicsFlagsResponder"; }
|
||||
|
||||
private:
|
||||
LLSD mObjectIDs;
|
||||
|
||||
@@ -219,7 +219,7 @@ public:
|
||||
virtual ~BaseCapabilitiesComplete()
|
||||
{ }
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
LL_WARNS2("AppInit", "Capabilities") << statusNum << ": " << reason << LL_ENDL;
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromHandle(mRegionHandle);
|
||||
@@ -229,7 +229,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromHandle(mRegionHandle);
|
||||
if(!regionp) //region was removed
|
||||
@@ -265,7 +265,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return baseCapabilitiesComplete_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return baseCapabilitiesComplete_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "BaseCapabilitiesComplete"; }
|
||||
|
||||
static boost::intrusive_ptr<BaseCapabilitiesComplete> build( U64 region_handle, S32 id )
|
||||
{
|
||||
@@ -1746,13 +1747,13 @@ public:
|
||||
{ }
|
||||
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
LL_WARNS2("AppInit", "SimulatorFeatures") << statusNum << ": " << reason << LL_ENDL;
|
||||
retry();
|
||||
}
|
||||
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromHandle(mRegionHandle);
|
||||
if(!regionp) //region is removed or responder is not created.
|
||||
@@ -1764,7 +1765,8 @@ public:
|
||||
regionp->setSimulatorFeatures(content);
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return simulatorFeaturesReceived_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return simulatorFeaturesReceived_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "SimulatorFeaturesReceived"; }
|
||||
|
||||
private:
|
||||
void retry()
|
||||
|
||||
@@ -703,18 +703,19 @@ class ViewerStatsResponder : public LLHTTPClient::ResponderWithResult
|
||||
public:
|
||||
ViewerStatsResponder() { }
|
||||
|
||||
void error(U32 statusNum, const std::string& reason)
|
||||
/*virtual*/ void error(U32 statusNum, const std::string& reason)
|
||||
{
|
||||
llinfos << "ViewerStatsResponder::error " << statusNum << " "
|
||||
<< reason << llendl;
|
||||
}
|
||||
|
||||
void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
llinfos << "ViewerStatsResponder::result" << llendl;
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerStatsResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerStatsResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "ViewerStatsResponder"; }
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -4420,7 +4420,7 @@ bool LLViewerWindow::rawRawSnapshot(LLImageRaw *raw,
|
||||
// Center the buffer.
|
||||
buffer_x_offset = llfloor(((window_width - snapshot_width) * scale_factor) / 2.f);
|
||||
buffer_y_offset = llfloor(((window_height - snapshot_height) * scale_factor) / 2.f);
|
||||
Dout(dc::notice, "rawSnapshot(" << image_width << ", " << image_height << ", " << snapshot_aspect << "): image_buffer_x = " << image_buffer_x << "; image_buffer_y = " << image_buffer_y);
|
||||
Dout(dc::snapshot, "rawRawSnapshot(" << image_width << ", " << image_height << ", " << snapshot_aspect << "): image_buffer_x = " << image_buffer_x << "; image_buffer_y = " << image_buffer_y);
|
||||
|
||||
bool error = !(image_buffer_x > 0 && image_buffer_y > 0);
|
||||
if (!error)
|
||||
|
||||
@@ -143,8 +143,7 @@ static int scale_speaker_volume(float volume)
|
||||
return scaled_volume;
|
||||
}
|
||||
|
||||
class LLViewerVoiceAccountProvisionResponder :
|
||||
public LLHTTPClient::ResponderWithResult
|
||||
class LLViewerVoiceAccountProvisionResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
public:
|
||||
LLViewerVoiceAccountProvisionResponder(int retries)
|
||||
@@ -152,7 +151,7 @@ public:
|
||||
mRetries = retries;
|
||||
}
|
||||
|
||||
virtual void error(U32 status, const std::string& reason)
|
||||
/*virtual*/ void error(U32 status, const std::string& reason)
|
||||
{
|
||||
if ( mRetries > 0 )
|
||||
{
|
||||
@@ -167,7 +166,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void result(const LLSD& content)
|
||||
/*virtual*/ void result(const LLSD& content)
|
||||
{
|
||||
if ( gVoiceClient )
|
||||
{
|
||||
@@ -191,7 +190,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerVoiceAccountProvisionResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return viewerVoiceAccountProvisionResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLViewerVoiceAccountProvisionResponder"; }
|
||||
|
||||
private:
|
||||
int mRetries;
|
||||
@@ -1019,9 +1019,10 @@ class LLVoiceClientCapResponder : public LLHTTPClient::ResponderWithResult
|
||||
public:
|
||||
LLVoiceClientCapResponder(void){};
|
||||
|
||||
virtual void error(U32 status, const std::string& reason); // called with bad status codes
|
||||
virtual void result(const LLSD& content);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return voiceClientCapResponder_timeout; }
|
||||
/*virtual*/ void error(U32 status, const std::string& reason); // called with bad status codes
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return voiceClientCapResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLVoiceClientCapResponder"; }
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
@@ -121,6 +121,7 @@ public:
|
||||
protected:
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return webProfileResponders_timeout; }
|
||||
/*virtual*/ bool followRedir(void) const { return true; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLWebProfileResponders::ConfigResponder"; }
|
||||
|
||||
private:
|
||||
LLPointer<LLImageFormatted> mImagep;
|
||||
@@ -156,8 +157,9 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return webProfileResponders_timeout; }
|
||||
/*virtual*/ bool followRedir(void) const { return true; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return webProfileResponders_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLWebProfileResponders::PostImageRedirectResponder"; }
|
||||
|
||||
private:
|
||||
LLPointer<LLImageFormatted> mImagep;
|
||||
@@ -206,8 +208,9 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return webProfileResponders_timeout; }
|
||||
/*virtual*/ bool redirect_status_ok(void) const { return true; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return webProfileResponders_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLWebProfileResponders::PostImageResponder"; }
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -56,9 +56,10 @@ class LLEnvironmentRequestResponder: public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
LOG_CLASS(LLEnvironmentRequestResponder);
|
||||
public:
|
||||
virtual void result(const LLSD& content);
|
||||
virtual void error(U32 status, const std::string& reason);
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return environmentRequestResponder_timeout; }
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return environmentRequestResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLEnvironmentRequestResponder"; }
|
||||
|
||||
private:
|
||||
friend class LLEnvironmentRequest;
|
||||
@@ -80,7 +81,7 @@ private:
|
||||
static clock_t UPDATE_WAIT_SECONDS;
|
||||
};
|
||||
|
||||
class LLEnvironmentApplyResponder: public LLHTTPClient::ResponderWithResult
|
||||
class LLEnvironmentApplyResponder : public LLHTTPClient::ResponderWithResult
|
||||
{
|
||||
LOG_CLASS(LLEnvironmentApplyResponder);
|
||||
public:
|
||||
@@ -98,11 +99,12 @@ public:
|
||||
* fail_reason : string
|
||||
* }
|
||||
*/
|
||||
virtual void result(const LLSD& content);
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
|
||||
virtual void error(U32 status, const std::string& reason); // non-200 errors only
|
||||
/*virtual*/ void error(U32 status, const std::string& reason); // non-200 errors only
|
||||
|
||||
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return environmentApplyResponder_timeout; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return environmentApplyResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLEnvironmentApplyResponder"; }
|
||||
|
||||
private:
|
||||
friend class LLEnvironmentApply;
|
||||
|
||||
@@ -112,6 +112,7 @@ public:
|
||||
/*virtual*/ void completed_headers(U32 status, std::string const& reason, AITransferInfo* info);
|
||||
/*virtual*/ void completedRaw(U32 status, std::string const& reason, LLChannelDescriptors const& channels, buffer_ptr_t const& buffer);
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return XMLRPCResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "XMLRPCResponder"; }
|
||||
};
|
||||
|
||||
#endif // LLXMLRPCRESPONDER_H
|
||||
|
||||
@@ -69,22 +69,22 @@
|
||||
<combo_item name="CurrentWindow" value="[i0,i0]">
|
||||
Current Window
|
||||
</combo_item>
|
||||
<combo_item name="500x500" value="[i500,i500]">
|
||||
<combo_item name="500x500" value="[i630,i-2]">
|
||||
500x500 (1:1)
|
||||
</combo_item>
|
||||
<combo_item name="500x375" value="[i500,i375]">
|
||||
<combo_item name="500x375" value="[i840,i-2]">
|
||||
500x375 (4:3)
|
||||
</combo_item>
|
||||
<combo_item name="500x350" value="[i500,i350]">
|
||||
<combo_item name="500x350" value="[i900,i-2]">
|
||||
500x350 (10:7)
|
||||
</combo_item>
|
||||
<combo_item name="500x313" value="[i500,i313]">
|
||||
<combo_item name="500x313" value="[i1008,i-2]">
|
||||
500x313 (16:10)
|
||||
</combo_item>
|
||||
<combo_item name="500x281" value="[i500,i281]">
|
||||
<combo_item name="500x281" value="[i1120,i-2]">
|
||||
500x281 (16:9)
|
||||
</combo_item>
|
||||
<combo_item name="500x250" value="[i500,i250]">
|
||||
<combo_item name="500x250" value="[i1260,i-2]">
|
||||
500x250 (2:1)
|
||||
</combo_item>
|
||||
<combo_item name="Custom" value="[i-1,i-1]">
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
left="10"
|
||||
right="-10"
|
||||
type="string"
|
||||
word_wrap="true"/>
|
||||
word_wrap="true">
|
||||
Type your message here.
|
||||
</text_editor>
|
||||
<check_box
|
||||
follows="left|bottom"
|
||||
initial_value="true"
|
||||
@@ -46,6 +48,9 @@
|
||||
name="post_btn"
|
||||
bottom_delta="0"
|
||||
width="100"/>
|
||||
<string name="default_message">
|
||||
Click on the 'snapshot' link above to see the larger original.
|
||||
</string>
|
||||
<string name="upload_message">
|
||||
"Uploading..."
|
||||
</string>
|
||||
|
||||
Reference in New Issue
Block a user